Skip to content

Commit e7f1f3b

Browse files
ci: apply automated fixes
1 parent 617bc2c commit e7f1f3b

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

packages/db-collection-e2e/src/suites/moves.suite.ts

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
277277
expect(collection.get(postId)?.title).toBe(`Inactive User Post`)
278278

279279
// Clean up
280-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId])
280+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
281+
postId,
282+
])
281283
await config.mutations.deleteUser(userId)
282284
await collection.cleanup()
283285
})
@@ -328,7 +330,9 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
328330
expect(collection.has(postId)).toBe(false)
329331

330332
// Clean up
331-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId])
333+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
334+
postId,
335+
])
332336
await config.mutations.deleteUser(userId)
333337
await collection.cleanup()
334338
})
@@ -381,7 +385,9 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
381385
expect(collection.has(postId)).toBe(true)
382386

383387
// Clean up
384-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId])
388+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
389+
postId,
390+
])
385391
await config.mutations.deleteUser(userId)
386392
await collection.cleanup()
387393
})
@@ -435,7 +441,9 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
435441
expect(collection.get(postId)?.title).toBe(`Updated Tagged Post`)
436442

437443
// Clean up
438-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId])
444+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
445+
postId,
446+
])
439447
await config.mutations.deleteUser(userId)
440448
await collection.cleanup()
441449
})
@@ -478,7 +486,9 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
478486
expect(collection.has(postId)).toBe(true)
479487

480488
// Delete post in Postgres
481-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId])
489+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
490+
postId,
491+
])
482492

483493
// Wait for post to be removed
484494
await waitForItemRemoved(collection, postId)
@@ -547,7 +557,9 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
547557
expect(collection2.has(postId)).toBe(false)
548558

549559
// Clean up
550-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId])
560+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
561+
postId,
562+
])
551563
await config.mutations.deleteUser(userId)
552564
await collection2.cleanup()
553565
})
@@ -674,9 +686,15 @@ export function createMovesTestSuite(getConfig: () => Promise<TagsTestConfig>) {
674686
expect(collection.has(postId3)).toBe(false) // post3: moved out (user3 inactive)
675687

676688
// Clean up
677-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId1])
678-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId2])
679-
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [postId3])
689+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
690+
postId1,
691+
])
692+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
693+
postId2,
694+
])
695+
await dbClient.query(`DELETE FROM ${postsTable} WHERE id = $1`, [
696+
postId3,
697+
])
680698
await config.mutations.deleteUser(userId1)
681699
await config.mutations.deleteUser(userId2)
682700
await config.mutations.deleteUser(userId3)

0 commit comments

Comments
 (0)