Skip to content

Commit

Permalink
remove unused whenReady functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Feb 1, 2025
1 parent b4e833e commit dcd2138
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/automerge-repo/test/Repo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ describe("Repo", () => {
await repo.flush()

const bobHandle = await repo2.find<TestDoc>(handle.url)
await bobHandle.whenReady()
assert.deepEqual(bobHandle.doc(), { foo: "saved" })
})

Expand Down Expand Up @@ -306,7 +305,6 @@ describe("Repo", () => {
d.foo = "bar"
})
assert.equal(handle.isReady(), true)
await handle.whenReady()

await pause()
repo.delete(handle.url)
Expand Down Expand Up @@ -1063,11 +1061,6 @@ describe("Repo", () => {
: // tails, pick a random doc
(getRandomItem(docs) as DocHandle<TestDoc>)

// make sure the doc is ready
if (!doc.isReady()) {
await doc.whenReady()
}

// make a random change to it
doc.change(d => {
d.foo = Math.random().toString()
Expand Down Expand Up @@ -1240,7 +1233,6 @@ describe("Repo", () => {
})

const charlieHandle = await charlieRepo.find<TestDoc>(handle.url)
await charlieHandle.whenReady()

// make a change on charlie
charlieHandle.change(d => {
Expand Down

0 comments on commit dcd2138

Please sign in to comment.