Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Dec 6, 2024
1 parent bbbf386 commit 6bc6766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions packages/page-spy-browser/tests/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,9 @@ describe('new PageSpy([config])', () => {
await sleep();

expect(JSON.parse(sessionStorage.getItem(ROOM_SESSION_KEY)!)).toEqual({
name: sdk.name,
address: sdk.address,
roomUrl: sdk.roomUrl,
project: 'default',
title: '--',
secret: '',
useSecret: false,
});
Expand All @@ -190,10 +189,9 @@ describe('new PageSpy([config])', () => {
sessionStorage.setItem(
ROOM_SESSION_KEY,
JSON.stringify({
name: '',
address: '',
roomUrl: '',
address: 'xxx',
project: 'default',
title: '--',
secret: '',
useSecret: false,
}),
Expand Down
1 change: 0 additions & 1 deletion packages/page-spy-browser/tests/render.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ describe('Render PageSpy', () => {
};
const sdk = new SDK(config);

sdk.name = 'NAME';
sdk.address = 'ADDRESS';
sdk['render']();

Expand Down

0 comments on commit 6bc6766

Please sign in to comment.