aboutsummaryrefslogtreecommitdiff
path: root/test/background/repositories/ReadyFrameRepository.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/background/repositories/ReadyFrameRepository.test.ts')
-rw-r--r--test/background/repositories/ReadyFrameRepository.test.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/background/repositories/ReadyFrameRepository.test.ts b/test/background/repositories/ReadyFrameRepository.test.ts
index 71f20af..fb4d34a 100644
--- a/test/background/repositories/ReadyFrameRepository.test.ts
+++ b/test/background/repositories/ReadyFrameRepository.test.ts
@@ -1,4 +1,3 @@
-import { expect } from "chai";
import { ReadyFrameRepositoryImpl } from "../../../src/background/repositories/ReadyFrameRepository";
describe("background/repositories/ReadyFrameRepositoryImpl", () => {
@@ -9,7 +8,7 @@ describe("background/repositories/ReadyFrameRepositoryImpl", () => {
});
it("get and set a keyword", async () => {
- expect(await sut.getFrameIds(1)).to.be.undefined;
+ expect(await sut.getFrameIds(1)).toBeUndefined;
await sut.addFrameId(1, 10);
await sut.addFrameId(1, 12);
@@ -18,16 +17,16 @@ describe("background/repositories/ReadyFrameRepositoryImpl", () => {
await sut.addFrameId(2, 21);
await sut.addFrameId(2, 21);
- expect(await sut.getFrameIds(1)).to.deep.equal([10, 11, 12]);
- expect(await sut.getFrameIds(2)).to.deep.equal([20, 21]);
+ expect(await sut.getFrameIds(1)).toEqual([10, 11, 12]);
+ expect(await sut.getFrameIds(2)).toEqual([20, 21]);
await sut.removeFrameId(2, 21);
- expect(await sut.getFrameIds(2)).to.deep.equal([20, 21]);
+ expect(await sut.getFrameIds(2)).toEqual([20, 21]);
await sut.removeFrameId(2, 21);
- expect(await sut.getFrameIds(2)).to.deep.equal([20]);
+ expect(await sut.getFrameIds(2)).toEqual([20]);
await sut.removeFrameId(2, 20);
- expect(await sut.getFrameIds(2)).to.be.undefined;
+ expect(await sut.getFrameIds(2)).toBeUndefined;
});
});