Skip to content

Commit

Permalink
style(json-pack): 💄 fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 5, 2024
1 parent 628cf89 commit 11bae69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/json-pack/msgpack/__tests__/MsgPackDecoderFast.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ describe('object', () => {

test('throws on __proto__ key', () => {
const obj = new NullObject();
// tslint:disable-next-line: no-string-literal
obj['__proto__'] = 123;
const buf = encode(obj);
expect(() => decode(buf, 0)).toThrow();
Expand Down
1 change: 1 addition & 0 deletions src/json-pack/ubjson/__tests__/UbjsonDecoder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ describe('object', () => {

test('throws on __proto__ key', () => {
const obj = new NullObject();
// tslint:disable-next-line: no-string-literal
obj['__proto__'] = 123;
const buf = encoder.encode(obj);
expect(() => decoder.read(buf)).toThrow();
Expand Down

0 comments on commit 11bae69

Please sign in to comment.