Skip to content

Commit 1e71e9b

Browse files
committed
remove non-null assertions
1 parent f883279 commit 1e71e9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/query.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async function setupTestEnvironment(registerPlugin = true) {
9191
describe('useQuery', () => {
9292
it('useQuery', async () => {
9393
const { z, tableQuery, app } = await setupTestEnvironment()
94-
await app!.runWithContext(async () => {
94+
await app.runWithContext(async () => {
9595
const { data: rows, status } = useQuery(() => tableQuery)
9696
expect(rows.value).toMatchInlineSnapshot(`[
9797
{
@@ -142,7 +142,7 @@ describe('useQuery', () => {
142142
return
143143
}
144144

145-
await app!.runWithContext(async () => {
145+
await app.runWithContext(async () => {
146146
const ttl = ref<TTL>('1m')
147147

148148
const materializeSpy = vi.spyOn(tableQuery, 'materialize')
@@ -177,7 +177,7 @@ describe('useQuery', () => {
177177
return
178178
}
179179

180-
await app!.runWithContext(async () => {
180+
await app.runWithContext(async () => {
181181
const ttl = ref<TTL>('1m')
182182

183183
let materializeSpy: MockInstance
@@ -228,7 +228,7 @@ describe('useQuery', () => {
228228
it('useQuery deps change', async () => {
229229
const { z, tableQuery, app } = await setupTestEnvironment()
230230

231-
await app!.runWithContext(async () => {
231+
await app.runWithContext(async () => {
232232
const a = ref(1)
233233

234234
const { data: rows, status } = useQuery(() =>
@@ -290,7 +290,7 @@ describe('useQuery', () => {
290290

291291
it('useQuery deps change watchEffect', async () => {
292292
const { z, tableQuery, app } = await setupTestEnvironment()
293-
await app!.runWithContext(async () => {
293+
await app.runWithContext(async () => {
294294
const a = ref(1)
295295
const { data: rows } = useQuery(() => tableQuery.where('a', a.value))
296296

@@ -348,7 +348,7 @@ describe('useQuery', () => {
348348
return
349349
}
350350

351-
app!.runWithContext(() => {
351+
app.runWithContext(() => {
352352
const a = ref(1)
353353
const { data: rows, status } = useQuery(() => byIdQuery(a.value))
354354

0 commit comments

Comments
 (0)