From 7b0402a06e37128afa049ec35ece89db92011be5 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Thu, 28 Jul 2022 23:31:40 -0500 Subject: [PATCH] repo tests --- squarenotsquare/__tests__/Repo-tests.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 squarenotsquare/__tests__/Repo-tests.js 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