From 767f1b0c20b4e9603a55abdfa316c6ec9e4a3296 Mon Sep 17 00:00:00 2001 From: Tan Zhen Yong Date: Thu, 21 Mar 2019 15:39:21 +0800 Subject: [PATCH] Fix import order to match ESLint sort-import --- test/functional/testUtil/test.js | 2 +- test/functional/test_site/testUtil/test.js | 2 +- test/unit/Site.test.js | 2 +- test/unit/cliUtil.test.js | 3 +-- test/unit/parser.test.js | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/functional/testUtil/test.js b/test/functional/testUtil/test.js index 722527cca6..12502cff89 100644 --- a/test/functional/testUtil/test.js +++ b/test/functional/testUtil/test.js @@ -1,7 +1,7 @@ -const diffHtml = require('./diffHtml'); const fs = require('fs'); const path = require('path'); const walkSync = require('walk-sync'); +const diffHtml = require('./diffHtml'); const _ = {}; _.isEqual = require('lodash/isEqual'); diff --git a/test/functional/test_site/testUtil/test.js b/test/functional/test_site/testUtil/test.js index a74032481c..238ce84024 100644 --- a/test/functional/test_site/testUtil/test.js +++ b/test/functional/test_site/testUtil/test.js @@ -1,7 +1,7 @@ -const diffHtml = require('./diffHtml'); const fs = require('fs'); const path = require('path'); const walkSync = require('walk-sync'); +const diffHtml = require('./diffHtml'); const _ = {}; _.isEqual = require('lodash/isEqual'); diff --git a/test/unit/Site.test.js b/test/unit/Site.test.js index ef9e421f03..8137ac7225 100644 --- a/test/unit/Site.test.js +++ b/test/unit/Site.test.js @@ -1,7 +1,7 @@ -const Site = require('../../src/Site'); const path = require('path'); const fs = require('fs-extra-promise'); const ghpages = require('gh-pages'); +const Site = require('../../src/Site'); const { FOOTER_MD_DEFAULT, diff --git a/test/unit/cliUtil.test.js b/test/unit/cliUtil.test.js index 31d1ad58e8..f55feacb64 100644 --- a/test/unit/cliUtil.test.js +++ b/test/unit/cliUtil.test.js @@ -1,7 +1,7 @@ -const cliUtil = require('../../src/util/cliUtil'); const fs = require('fs'); const path = require('path'); +const cliUtil = require('../../src/util/cliUtil'); const { SITE_JSON_DEFAULT } = require('./utils/data'); jest.mock('fs'); @@ -56,4 +56,3 @@ test('findRootFolder without user specified root throws error if no parent dirs }) .toThrow(`No config file found in parent directories of ${nestedDir}`); }); - diff --git a/test/unit/parser.test.js b/test/unit/parser.test.js index b48a19c796..f3e9177dde 100644 --- a/test/unit/parser.test.js +++ b/test/unit/parser.test.js @@ -1,6 +1,6 @@ -const MarkBind = require('../../src/lib/markbind/src/parser.js'); const path = require('path'); const fs = require('fs'); +const MarkBind = require('../../src/lib/markbind/src/parser.js'); const { USER_VARIABLES_DEFAULT } = require('./utils/data'); jest.mock('fs');