Skip to content

Commit 54d3a80

Browse files
committed
address comment
1 parent a3fba4e commit 54d3a80

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/util/test/deepCopy.test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,10 @@ describe('deepExtend', () => {
105105

106106
it('does not extend property __proto__', () => {
107107
const src = JSON.parse('{ "__proto__": { "polluted": "polluted" } }');
108-
const a = {};
108+
const a: Record<string, unknown> = {};
109109
deepExtend(a, src);
110110

111-
// @ts-expect-error
112111
expect(a.__proto__).to.equal(Object.prototype);
113-
114-
// @ts-expect-error
115112
expect(a.polluted).to.be.undefined;
116113
});
117114
});

0 commit comments

Comments
 (0)