Skip to content

Commit

Permalink
fix: test case for deepCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Feb 19, 2020
1 parent 485bea8 commit 0462a46
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/x6/src/util/json/index.test.ts
Expand Up @@ -80,16 +80,14 @@ describe('@lumino/coreutils', () => {
expect(v5).toEqual(r5)
expect(v6).toEqual(r6)
expect(v7).toEqual(r7)
expect(v6).not.toEqual(r6)
expect(v6[3]).not.toEqual(r6[3])
expect(v6[4]).not.toEqual(r6[4])
expect((v6[4] as JSONObject)['b']).not.toEqual(
(r6[4] as JSONObject)['b'],
)
expect(v7).not.toEqual(r7)
expect(v7['b']).not.toEqual(r7['b'])
expect((v7['b'] as JSONArray)[1]).not.toEqual((r7['b'] as JSONArray)[1])
expect(v7['c']).not.toEqual(r7['c'])
expect(v6).toEqual(r6)
expect(v6[3]).not.toBe(r6[3])
expect(v6[4]).not.toBe(r6[4])
expect((v6[4] as JSONObject)['b']).not.toBe((r6[4] as JSONObject)['b'])
expect(v7).toEqual(r7)
expect(v7['b']).not.toBe(r7['b'])
expect((v7['b'] as JSONArray)[1]).not.toBe((r7['b'] as JSONArray)[1])
expect(v7['c']).not.toBe(r7['c'])
})
})
})
Expand Down

0 comments on commit 0462a46

Please sign in to comment.