Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Apr 24, 2024
1 parent 2d4f544 commit 9e1d8a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ describe('IframeExecutionService', () => {
const response = await service.executeSnap({
snapId: 'TestSnap',
sourceCode: `
console.log('foo');
module.exports.onRpcRequest = () => null;
`,
endowments: ['console'],
endowments: [],
});

expect(response).toBe('OK');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ describe('WebWorkerExecutionService', () => {
await service.executeSnap({
snapId: MOCK_SNAP_ID,
sourceCode: `
console.log('foo');
module.exports.onRpcRequest = () => null;
`,
endowments: ['console'],
endowments: [],
});

await service.executeSnap({
snapId: MOCK_LOCAL_SNAP_ID,
sourceCode: `
console.log('foo');
module.exports.onRpcRequest = () => null;
`,
endowments: ['console'],
endowments: [],
});

expect(document.getElementById(WORKER_POOL_ID)).not.toBeNull();
Expand All @@ -64,9 +64,9 @@ describe('WebWorkerExecutionService', () => {
const response = await service.executeSnap({
snapId: 'TestSnap',
sourceCode: `
console.log('foo');
module.exports.onRpcRequest = () => null;
`,
endowments: ['console'],
endowments: [],
});

expect(response).toBe('OK');
Expand Down

0 comments on commit 9e1d8a9

Please sign in to comment.