Skip to content

Commit

Permalink
Update packages/snaps-rpc-methods/src/permitted/getState.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Bolding <[email protected]>
  • Loading branch information
Mrtenz and FrederikBolding authored Dec 18, 2024
1 parent bf52606 commit 05929ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/snaps-rpc-methods/src/permitted/getState.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ describe('get', () => {
);
});

it('returns `null` if the key is a constructor pollution attempt', () => {
it('throws an error if the key is a constructor pollution attempt', () => {
expect(() => get(object, 'constructor.polluted')).toThrow(
'Invalid params: Key contains forbidden characters.',
);
Expand Down

0 comments on commit 05929ba

Please sign in to comment.