Skip to content

Commit

Permalink
Fix running tests using Firestore implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicbartl committed Jan 7, 2020
1 parent 476e331 commit 9fa25f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -25,7 +25,7 @@
},
"scripts": {
"test": "NODE_ENV=test mocha dist/test",
"test:firestore": "yarn test --opts test/mocha.firestore.opts",
"test:firestore": "yarn test --opts test/mocha.firestore.opts --firestore",
"test:all": "yarn test && yarn test:firestore",
"build": "rm -rf dist && tsc",
"preversion": "git pull && yarn build && yarn test:all",
Expand Down
2 changes: 1 addition & 1 deletion src/test/storage/repository_test.ts
Expand Up @@ -23,7 +23,7 @@ class ModelRepository extends BaseRepository<Model> {

describe('Repository', function () {

const tc = TestFactory.createWithRepository(this, ModelRepository, null, false);
const tc = TestFactory.createWithRepository(this, ModelRepository);
const modelRepo = tc.resolve(ModelRepository);

it('should query a nested object field', async () => {
Expand Down
1 change: 0 additions & 1 deletion test/mocha.firestore.opts
@@ -1,4 +1,3 @@
--recursive
--exit
--firestore
--timeout 10000

0 comments on commit 9fa25f3

Please sign in to comment.