Skip to content

Commit

Permalink
test: unit
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed May 9, 2024
1 parent 3e54734 commit c704fc2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions test/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@vueuse/integrations": "^10.9.0",
"axios": "^0.26.1",
"debug": "^4.3.4",
"immutable": "5.0.0-beta.5",
"strip-ansi": "^7.1.0",
"sweetalert2": "^11.6.16",
"tinyspy": "^1.0.2",
Expand Down
9 changes: 9 additions & 0 deletions test/core/test/immutable.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { expect, test } from 'vitest'
import im from 'immutable'

test('basic', () => {
expect(im.List([{ x: 1 }])).toEqual(im.List([{ x: 1 }]))
expect(im.List([{ x: 1 }])).toEqual(im.List([1]).map(i => ({ x: i })))
expect(im.List([{ x: 1 }])).not.toEqual(im.List([{ x: 2 }]))
expect(im.List([{ x: 1 }])).not.toEqual(im.List([]))
})

0 comments on commit c704fc2

Please sign in to comment.