Skip to content

Commit 0507f97

Browse files
committed
fix test: useGet test was not actually testing null id prevents API hit
1 parent 873c947 commit 0507f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/use/get.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('use/get', function() {
130130
const { Instrument } = makeContext()
131131

132132
const id = null
133-
const instrumentData = useGet({ model: Instrument, id, lazy: true })
133+
const instrumentData = useGet({ model: Instrument, id })
134134
const { hasBeenRequested } = instrumentData
135135

136136
assert(isRef(hasBeenRequested))

0 commit comments

Comments
 (0)