Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tylim88 committed Apr 15, 2024
1 parent ec3e2f2 commit 9b59bf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/refs/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ describe('test utils', () => {
collectionIDs: ['1', '2', '3'],
documentIDs: ['a', 'b', 'c'],
})
).toBe('1/a/2/b/3/c/')
).toBe('1/a/2/b/3/c')

expect(
buildPathFromColIDsAndDocIDs({
collectionIDs: ['1', '2', '3'],
documentIDs: ['a', 'b'],
})
).toBe('1/a/2/b/3/')
).toBe('1/a/2/b/3')

expect(
buildPathFromColIDsAndDocIDs({
collectionIDs: ['1', '2'],
documentIDs: ['a', 'b', 'c'],
})
).toBe('1/a/2/b/')
).toBe('1/a/2/b')

expect(
buildPathFromColIDsAndDocIDs({
Expand All @@ -35,6 +35,6 @@ describe('test utils', () => {
collectionIDs: ['1', '2'],
documentIDs: [],
})
).toBe('1/2/')
).toBe('1/2')
})
})

0 comments on commit 9b59bf0

Please sign in to comment.