mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 19:48:54 +02:00
refactor: ensure lodash is default-imported (#6716)
This commit is contained in:
parent
47c9a37c5f
commit
ea6ceaa371
44 changed files with 239 additions and 221 deletions
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import {shuffle} from 'lodash';
|
||||
import _ from 'lodash';
|
||||
import {listTagsByLetters} from '../tagsUtils';
|
||||
|
||||
describe('listTagsByLetters', () => {
|
||||
|
@ -60,7 +60,9 @@ describe('listTagsByLetters', () => {
|
|||
listTagsByLetters([tagzxy, tagdef, tagaaa, tag2, tagAbc, tag1]),
|
||||
).toEqual(expectedResult);
|
||||
expect(
|
||||
listTagsByLetters(shuffle([tagzxy, tagdef, tagaaa, tag2, tagAbc, tag1])),
|
||||
listTagsByLetters(
|
||||
_.shuffle([tagzxy, tagdef, tagaaa, tag2, tagAbc, tag1]),
|
||||
),
|
||||
).toEqual(expectedResult);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue