Skip to content

Commit 60cd45c

Browse files
committed
Fix unit tests
1 parent bac7ccc commit 60cd45c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/register.spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ describe("register", () => {
2121

2222
describe("methods", () => {
2323
it("should register all LocalStorage public methods as commands on Cypress", () => {
24-
expect(cypressMock.stubs.Commands.add.callCount).toEqual(LocalStorage.publicMethods.length);
24+
expect(cypressMock.stubs.Commands.add.callCount).toEqual(
25+
LocalStorage.cypressCommands.length
26+
);
2527
});
2628

2729
it("should register clearLocalStorageSnapshot method", () => {

0 commit comments

Comments
 (0)