Skip to content

Commit

Permalink
add a test to cover this new behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Jul 24, 2024
1 parent 8e54aa1 commit f96b835
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/automerge-repo/test/AutomergeUrl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,9 @@ describe("AutomergeUrl", () => {
const url = stringifyAutomergeUrl({ documentId: badUuidDocumentId })
assert(isValidAutomergeUrl(url) === false)
})

it("should return false for a documentId that is just some random type", () => {
assert(isValidAutomergeUrl({ foo: "bar" } as unknown) === false)
})
})
})

0 comments on commit f96b835

Please sign in to comment.