Skip to content

Commit 05d75ea

Browse files
committed
Fix a bunch of type errors in the tests
Former-commit-id: 66482dd Former-commit-id: f54fe46
1 parent 85ac0ee commit 05d75ea

7 files changed

+6
-11
lines changed

package.json.REMOVED.git-id

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7abf8f801ad6278aba4e85685c3d23adefad116a
1+
fffb096295ce713b66e4f99bc154f5b14d87911b
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aba1dd3155657d433096731fab703c3e30cbf1fa
1+
65073feae4649b43d8429b8d61a9bf4462abe1b1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1fb27d566b7c3034ff9502e918fa65ce30e4e43c
1+
03699410fa993ef4e4e96cf6b0ec3c9a97cbfead
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
74a67c7ab000cd7cee3655199bd2ca5834085126
1+
b012ff5cffff432eca8c941c7dd6b9e6e2ef5d3d

test/compose.spec.ts.REMOVED.git-id

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0f901d16858d8e639b971b506a13473712d4cb93
1+
6e61fdf75ae109ff4fafa88f6e83a76b07306faa
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d104d41480eb4865939c7831851c3ada6cdadc22
1+
f8065aeb618d36e1b5344bd7e730e2450f1dee93

test/utils/isPlainObject.spec.ts

-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,10 @@ import vm from 'vm'
44

55
describe('isPlainObject', () => {
66
it('returns true only if plain object', () => {
7-
function Test() {
8-
this.prop = 1
9-
}
10-
117
const sandbox = { fromAnotherRealm: false }
128
vm.runInNewContext('fromAnotherRealm = {}', sandbox)
139

1410
expect(isPlainObject(sandbox.fromAnotherRealm)).toBe(true)
15-
expect(isPlainObject(new Test())).toBe(false)
1611
expect(isPlainObject(new Date())).toBe(false)
1712
expect(isPlainObject([1, 2, 3])).toBe(false)
1813
expect(isPlainObject(null)).toBe(false)

0 commit comments

Comments
 (0)