Skip to content

Commit 8d7c63b

Browse files
committed
fix: numeric demo assertions
1 parent b572961 commit 8d7c63b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demos/numeric-plugin-demo/numeric-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const delta = diffpatcher.diff(
5858
population: 403,
5959
},
6060
);
61-
assertSame(delta, [0, 3, NUMERIC_DIFFERENCE]);
61+
assertSame(delta, { population: [0, 3, NUMERIC_DIFFERENCE] });
6262

6363
/*
6464
Let's make the corresponding patch filter that will handle the new delta type
@@ -138,7 +138,7 @@ diffpatcher.processor.pipes.reverse.debug = true;
138138

139139
// try it
140140
const reverseDelta = diffpatcher.reverse(delta);
141-
assertSame(reverseDelta, [0, -3, NUMERIC_DIFFERENCE]);
141+
assertSame(reverseDelta, { population: [0, -3, NUMERIC_DIFFERENCE] });
142142

143143
// unpatch twice!
144144
diffpatcher.unpatch(right, delta);

0 commit comments

Comments
 (0)