Skip to content

Commit

Permalink
Use import as declarationKeyword consistently
Browse files Browse the repository at this point in the history
We were still using `const` in some test files. I've changed those and
updated the .importjs.json config file.
  • Loading branch information
trotzig committed May 9, 2016
1 parent 396d141 commit 2a48a61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .importjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
{
"appliesTo": "lib/__tests__/**",
"declarationKeyword": "const",
"importDevDependencies": true
}
]
4 changes: 2 additions & 2 deletions lib/__tests__/ImportStatements-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

jest.mock('../FileUtils');

const ImportStatement = require('../ImportStatement');
const ImportStatements = require('../ImportStatements');
import ImportStatement from '../ImportStatement';
import ImportStatements from '../ImportStatements';

describe('ImportStatements', () => {
function newStatements() {
Expand Down
6 changes: 3 additions & 3 deletions lib/__tests__/Importer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
jest.mock('../FileUtils');
jest.mock('../findMatchingFiles');

const FileUtils = require('../FileUtils');
const findMatchingFiles = require('../findMatchingFiles');
const Importer = require('../Importer');
import FileUtils from '../FileUtils';
import Importer from '../Importer';
import findMatchingFiles from '../findMatchingFiles';

describe('Importer', () => {
let word;
Expand Down

0 comments on commit 2a48a61

Please sign in to comment.