Browse Source

repo tests

pull/1/head
Tim Glasgow 2 years ago
parent
commit
7b0402a06e
  1. 18
      squarenotsquare/__tests__/Repo-tests.js

18
squarenotsquare/__tests__/Repo-tests.js

@ -0,0 +1,18 @@
import ScoreRepo from "../src/realm/repos/ScoreRepo";
import SystemRepo from "../src/realm/repos/SystemRepo";
import UserRepo from "../src/realm/repos/UserRepo";
test('ScoreRepo inits', () => {
let testRepo = new ScoreRepo({fakeRealm: true});
expect(testRepo.realmDB.fakeRealm).toEqual(true);
})
test('SystemRepo inits', () => {
let testRepo = new SystemRepo({fakeRealm: true});
expect(testRepo.realmDB.fakeRealm).toEqual(true);
})
test('UserRepo inits', () => {
let testRepo = new UserRepo({fakeRealm: true});
expect(testRepo.realmDB.fakeRealm).toEqual(true);
})
Loading…
Cancel
Save