From ea46a0c47fe2aa7c5938aff77543002d0be3f72d Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 6 Sep 2019 11:33:49 +0200 Subject: [PATCH] test(migrateToInQueries CLI): Corrects import to avoid errors with missing exports. (https://github.com/LearningLocker/learninglocker/pull/1429) --- cli/src/commands/migrateToInQueries-test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/src/commands/migrateToInQueries-test.js b/cli/src/commands/migrateToInQueries-test.js index f09e06ffa0..6ba6719758 100644 --- a/cli/src/commands/migrateToInQueries-test.js +++ b/cli/src/commands/migrateToInQueries-test.js @@ -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); }); @@ -96,7 +96,7 @@ describe('migrateToInQueries', () => { } }); - const actual = buildNewFilter(input); + const actual = buildNewQuery(input); expect(actual).to.equal(expected); }); @@ -173,7 +173,7 @@ describe('migrateToInQueries', () => { } }); - const actual = buildNewFilter(input); + const actual = buildNewQuery(input); expect(actual).to.equal(expected); }); });