Skip to content

Commit

Permalink
test(migrateToInQueries CLI): Corrects import to avoid errors with mi…
Browse files Browse the repository at this point in the history
…ssing exports. (#1429)
  • Loading branch information
das7pad authored and ryasmi committed Sep 6, 2019
1 parent d6091c5 commit ea46a0c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli/src/commands/migrateToInQueries-test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { expect } from 'chai';
import { buildNewFilter } from './migrateToInQueries';
import { buildNewQuery } from './migrateToInQueries';

describe('migrateToInQueries', () => {
describe('buildNewFilters', () => {
describe('buildNewQuery', () => {
it('should not change when $match.$and does not exist', async () => {
const input = JSON.stringify({ $match: {} });
const expected = JSON.stringify({ $match: {} });
const actual = buildNewFilter(input);
const actual = buildNewQuery(input);
expect(actual).to.equal(expected);
});

Expand Down Expand Up @@ -96,7 +96,7 @@ describe('migrateToInQueries', () => {
}
});

const actual = buildNewFilter(input);
const actual = buildNewQuery(input);
expect(actual).to.equal(expected);
});

Expand Down Expand Up @@ -173,7 +173,7 @@ describe('migrateToInQueries', () => {
}
});

const actual = buildNewFilter(input);
const actual = buildNewQuery(input);
expect(actual).to.equal(expected);
});
});
Expand Down

0 comments on commit ea46a0c

Please sign in to comment.