Skip to content

Commit 05929ba

Browse files
Update packages/snaps-rpc-methods/src/permitted/getState.test.ts
Co-authored-by: Frederik Bolding <[email protected]>
1 parent bf52606 commit 05929ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/snaps-rpc-methods/src/permitted/getState.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ describe('get', () => {
297297
);
298298
});
299299

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

0 commit comments

Comments
 (0)