diff --git a/squarenotsquare/__tests__/Repo-tests.js b/squarenotsquare/__tests__/Repo-tests.js new file mode 100644 index 0000000..a5f2f1a --- /dev/null +++ b/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); +}) \ No newline at end of file