Skip to content

Commit

Permalink
Fit to standard style.
Browse files Browse the repository at this point in the history
Signed-off-by: JK <u.sslooky@gmail.com>
  • Loading branch information
JammSpread committed Mar 13, 2021
1 parent 6e3d193 commit 4b284f2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,22 +267,22 @@ function types (clone, label) {
})
test(`${label} - maps`, async ({ same, isNot }) => {
const map = new Map([['a', 1]])
same(Array.from(clone(map)), [['a', 1]], "same value")
isNot(clone(map), map, "different object")
same(Array.from(clone(map)), [['a', 1]], 'same value')
isNot(clone(map), map, 'different object')
})
test(`${label} - sets`, async ({ same, isNot }) => {
const set = new Set([1])
same(Array.from(clone(set)), [1])
isNot(clone(set), set, "different object")
isNot(clone(set), set, 'different object')
})
test(`${label} - nested maps`, async ({ same, isNot }) => {
const data = { m: new Map([['a', 1]]) }
same(Array.from(clone(data).m), [['a', 1]], "same value")
isNot(clone(data).m, data.m, "different object")
same(Array.from(clone(data).m), [['a', 1]], 'same value')
isNot(clone(data).m, data.m, 'different object')
})
test(`${label} - nested sets`, async ({ same, isNot }) => {
const data = { s: new Set([1]) }
same(Array.from(clone(data).s), [1], "same value")
isNot(clone(data).s, data.s, "different object")
same(Array.from(clone(data).s), [1], 'same value')
isNot(clone(data).s, data.s, 'different object')
})
}

0 comments on commit 4b284f2

Please # to comment.