8000 Fix incorrect expectation in slice test · powercoder23/immutable-js@5d17feb · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d17feb

Browse files
author
Robert Knight
committed
Fix incorrect expectation in slice test
The test comment indicated that one trailing hole was expected but the argument to toEqual() had two. This used to pass previously due to an emission bug in the TypeScript 1.0 compiler which is fixed in TS 1.4
1 parent 952cfc4 commit 5d17feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/slice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('slice', () => {
3131
it('slices a sparse indexed sequence', () => {
3232
expect(Seq([1,,2,,3,,4,,5,,6]).slice(1).toArray()).toEqual([,2,,3,,4,,5,,6]);
3333
expect(Seq([1,,2,,3,,4,,5,,6]).slice(2).toArray()).toEqual([2,,3,,4,,5,,6]);
34-
expect(Seq([1,,2,,3,,4,,5,,6]).slice(3, -3).toArray()).toEqual([,3,,4,,,]); // one trailing hole.
34+
expect(Seq([1,,2,,3,,4,,5,,6]).slice(3, -3).toArray()).toEqual([,3,,4,,]); // one trailing hole.
3535
})
3636

3737
it('can maintain indices for an keyed indexed sequence', () => {

0 commit comments

Comments
 (0)
0