Skip to content

Commit

Permalink
e2e test fix attempt #1
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros committed Sep 10, 2024
1 parent c21690d commit 73e17b1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions libs/model/src/tester/e2eSeeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,20 @@ export const e2eTestEntities = async function (
await testDb.Thread.findOrCreate({
where: {
id: -i - 1,
},
defaults: {
address_id: -1,
title: `testThread Title ${-i - 1}`,
body: `testThread Body ${-i - 1}`,
community_id: 'cmntest',
topic_id: -1,
kind: 'discussion',
plaintext: 'text',
stage: 'discussion',
view_count: 0,
reaction_count: 0,
reaction_weights_sum: 0,
comment_count: 0,
search: getThreadSearchVector(
`testThread Title ${-i - 1}`,
`testThread Body ${-i - 1}`,
Expand All @@ -216,13 +223,20 @@ export const e2eTestEntities = async function (
await testDb.Thread.findOrCreate({
where: {
id: -i - 1 - 2,
},
defaults: {
address_id: -2,
title: `testThread Title ${-i - 1 - 2}`,
body: `testThread Body ${-i - 1 - 2}`,
community_id: 'cmntest',
topic_id: -2,
kind: 'discussion',
plaintext: 'text',
stage: 'discussion',
view_count: 0,
reaction_count: 0,
reaction_weights_sum: 0,
comment_count: 0,
search: getThreadSearchVector(
`testThread Title ${-i - 1 - 2}`,
`testThread Body ${-i - 1 - 2}`,
Expand Down

0 comments on commit 73e17b1

Please sign in to comment.