Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
  • Loading branch information
mcandeia committed Mar 13, 2024
1 parent 1f052c1 commit e26dd26
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import * as fjp from "fast-json-patch";
import { diff } from "./src/crdt/text.ts";
import type { VolumeListResponse } from "./src/realtime.ts";
import type {
FileSystemNode,
ServerEvent,
VolumeListResponse,
VolumePatchRequest,
VolumePatchResponse,
} from "./src/realtime.ts";
} from "./src/realtime.types.ts";

const jp = fjp.default;

Expand Down Expand Up @@ -199,6 +199,7 @@ const tests = {
const snapshot = JSON.stringify([{
accepted: true,
path: shelf,
content: "ABC",
}]);
assertEquals(JSON.stringify(results), snapshot);

Expand Down Expand Up @@ -227,6 +228,7 @@ const tests = {
const snapshot = JSON.stringify([{
accepted: true,
path: shelf,
content: "!ZABC"
}]);
assertEquals(JSON.stringify(results), snapshot);

Expand All @@ -251,6 +253,7 @@ const tests = {
const snapShotWithOldTimestamp = JSON.stringify([{
accepted: true,
path: shelf,
content: "!ZAB!"
}]);
assertEquals(
JSON.stringify(resultsWithOldTimestamp),
Expand Down

0 comments on commit e26dd26

Please sign in to comment.