Skip to content

Commit

Permalink
doubled test
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Aug 16, 2024
1 parent 4279df7 commit 50dce2f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/automerge-repo/test/DocHandle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,6 @@ describe("DocHandle", () => {
assert.deepEqual(view, { foo: "one" })
})

it("should return a commit from the history", async () => {
const handle = setup()
handle.change(d => (d.foo = "zero"))
handle.change(d => (d.foo = "one"))
handle.change(d => (d.foo = "two"))
handle.change(d => (d.foo = "three"))
assert.equal(handle.isReady(), true)

const history = handle.history()
const view = handle.view(history[1])
assert.deepEqual(view, { foo: "one" })
})

it("should return diffs", async () => {
const handle = setup()
handle.change(d => (d.foo = "zero"))
Expand Down

0 comments on commit 50dce2f

Please sign in to comment.