Skip to content

Commit

Permalink
Fix a bunch of type errors in the tests
Browse files Browse the repository at this point in the history
Former-commit-id: 66482dd
Former-commit-id: f54fe46
  • Loading branch information
timdorr committed Aug 3, 2021
1 parent e91f218 commit 527ac44
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7abf8f801ad6278aba4e85685c3d23adefad116a
fffb096295ce713b66e4f99bc154f5b14d87911b
2 changes: 1 addition & 1 deletion test/applyMiddleware.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aba1dd3155657d433096731fab703c3e30cbf1fa
65073feae4649b43d8429b8d61a9bf4462abe1b1
2 changes: 1 addition & 1 deletion test/bindActionCreators.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1fb27d566b7c3034ff9502e918fa65ce30e4e43c
03699410fa993ef4e4e96cf6b0ec3c9a97cbfead
2 changes: 1 addition & 1 deletion test/combineReducers.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
74a67c7ab000cd7cee3655199bd2ca5834085126
b012ff5cffff432eca8c941c7dd6b9e6e2ef5d3d
2 changes: 1 addition & 1 deletion test/compose.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0f901d16858d8e639b971b506a13473712d4cb93
6e61fdf75ae109ff4fafa88f6e83a76b07306faa
2 changes: 1 addition & 1 deletion test/createStore.spec.ts.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d104d41480eb4865939c7831851c3ada6cdadc22
f8065aeb618d36e1b5344bd7e730e2450f1dee93
5 changes: 0 additions & 5 deletions test/utils/isPlainObject.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ import vm from 'vm'

describe('isPlainObject', () => {
it('returns true only if plain object', () => {
function Test() {
this.prop = 1
}

const sandbox = { fromAnotherRealm: false }
vm.runInNewContext('fromAnotherRealm = {}', sandbox)

expect(isPlainObject(sandbox.fromAnotherRealm)).toBe(true)
expect(isPlainObject(new Test())).toBe(false)
expect(isPlainObject(new Date())).toBe(false)
expect(isPlainObject([1, 2, 3])).toBe(false)
expect(isPlainObject(null)).toBe(false)
Expand Down

0 comments on commit 527ac44

Please sign in to comment.