Skip to content

Commit

Permalink
fixing test to use offset correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
selfcontained committed Nov 8, 2023
1 parent 2090769 commit 3f8fb9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/gitpod-db/src/project-db.spec.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class ProjectDBSpec {
expect(page1.rows[1].id).to.eq(storedProject2.id);
expect(page1.rows[2].id).to.eq(storedProject3.id);

const page2 = await this.projectDb.findProjectsBySearchTerm(1, pageSize, "name", "ASC", "");
const page2 = await this.projectDb.findProjectsBySearchTerm(pageSize * 1, pageSize, "name", "ASC", "");
expect(page2.total).equals(5);
expect(page2.rows.length).equal(2);
expect(page2.rows[0].id).to.eq(storedProject4.id);
Expand Down

0 comments on commit 3f8fb9a

Please sign in to comment.