Skip to content

Commit

Permalink
refactor OrderedMap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Feb 29, 2024
1 parent c36e2eb commit 1cc862c
Show file tree
Hide file tree
Showing 5 changed files with 502 additions and 464 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Expand Up @@ -14,3 +14,4 @@ type-definitions/flow-tests/
!type-definitions/ts-tests/groupBy.ts
!type-definitions/ts-tests/list.ts
!type-definitions/ts-tests/map.ts
!type-definitions/ts-tests/ordered-map.ts
3 changes: 2 additions & 1 deletion tstyche.config.json
Expand Up @@ -10,6 +10,7 @@
"**/type-definitions/ts-tests/functional.ts",
"**/type-definitions/ts-tests/groupBy.ts",
"**/type-definitions/ts-tests/list.ts",
"**/type-definitions/ts-tests/map.ts"
"**/type-definitions/ts-tests/map.ts",
"**/type-definitions/ts-tests/ordered-map.ts"
]
}
4 changes: 4 additions & 0 deletions type-definitions/ts-tests/map.ts
Expand Up @@ -86,6 +86,10 @@ test('#get', () => {
});

test('#getIn', () => {
const result = Map({ a: 4, b: true }).getIn(['a' as const]);

expect(result).type.toBeNumber();

expect(Map({ a: 4, b: true }).getIn(['a' as const])).type.toBeNumber();

expect(
Expand Down

0 comments on commit 1cc862c

Please sign in to comment.