Skip to content

Commit

Permalink
test: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksey28 committed Dec 20, 2021
1 parent aa5fb55 commit bf20755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/server/ipc-serialization-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe('IPC serialization', () => {
const role = new Role('https://example.com', initFn, opts);

role.phase = RolePhase.pendingInitialization;
role.redirectUrls = { 1: 'https://redirect-url.com' };
role.redirectUrl = 'https://redirect-url.com';
role.stateSnapshot = { cookie: 'key=value' };
role.initErr = new Error();

Expand All @@ -22,7 +22,7 @@ describe('IPC serialization', () => {
expect(role.loginUrl).eql(deserializedRole.loginUrl);
expect(role._initFn).eql(deserializedRole._initFn);
expect(role.opts).deep.equal(deserializedRole.opts);
expect(role.redirectUrls).eql(deserializedRole.redirectUrls);
expect(role.redirectUrl).eql(deserializedRole.redirectUrl);
expect(role.stateSnapshot).eql(deserializedRole.stateSnapshot);
expect(role.initErr).eql(deserializedRole.initErr);
});
Expand Down

0 comments on commit bf20755

Please sign in to comment.