mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +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
|
@ -28,7 +28,7 @@ import {
|
|||
posixPath,
|
||||
readOutputHTMLFile,
|
||||
} from '../index';
|
||||
import {sum} from 'lodash';
|
||||
import _ from 'lodash';
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
|
||||
|
@ -322,7 +322,7 @@ describe('mapAsyncSequential', () => {
|
|||
|
||||
const timeTotal = timeAfter - timeBefore;
|
||||
|
||||
const totalTimeouts = sum(Object.values(itemToTimeout));
|
||||
const totalTimeouts = _.sum(Object.values(itemToTimeout));
|
||||
expect(timeTotal).toBeGreaterThanOrEqual(totalTimeouts - 20);
|
||||
|
||||
expect(itemMapStartsAt['1']).toBeGreaterThanOrEqual(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue