Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Commit 53a95c7

Browse files
author
Jack Chan
committed
fix: update reorder testcase
1 parent 01ad236 commit 53a95c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/detailed/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('.detailedDiff', () => {
255255
test.each([
256256
[{ a: { a: ["a", "b", "c"] } }, { a: { a: ["a", "c", "b"] } }],
257257
])('returns inserted and removed array element of right hand side (%s, %s)', (lhs, rhs) => {
258-
expect(detailedDiff(lhs, rhs, false)).toEqual({ "added": {}, "deleted": {}, "updated": { a: { a: { after: { b: [{ counter: 0, newIndex: 2}], c: [{ counter: 0, newIndex: 1 }] } } } } });
258+
expect(detailedDiff(lhs, rhs, false)).toEqual({ "added": {}, "deleted": {}, "updated": { a: { a: { after: { b: [{ counter: 0, newIndex: 2,oldIndex: 1}], c: [{ counter: 0, newIndex: 1,oldIndex: 2 }] } } } } });
259259
});
260260
});
261261

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /