Skip to content

Commit

Permalink
removes console logs from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tywalch committed Dec 30, 2023
1 parent 1f9b1ef commit 51dcb68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions test/connected.page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,12 @@ describe("Query Pagination", () => {
.assigned({ employee: Tasks.employees[0] })
.go({ cursor, [limitOption]: limit })
.then((res) => [res.cursor, res.data]);

if (next && count > 0) {
const deserialized = cursorFormatter.deserialize(next);
expect(deserialized).to.have.keys(["gsi2pk", "gsi2sk", "pk", "sk"]);
}
if (!(items.length <= limit)) {
console.log('oh no', {length: items.length, limit});
}

expect(items.length <= limit).to.be.true;
for (let item of items) {
keys.add(item.task + item.project + item.employee);
Expand All @@ -384,9 +383,7 @@ describe("Query Pagination", () => {
if (next !== null && count > 1) {
expect(next).to.have.keys(["sk", "pk", "gsi1sk", "gsi1pk"]);
}
if (!(items.length <= limit)) {
console.log('oh no 2', {length: items.length, limit});
}

expect(items.length <= limit).to.be.true;
for (let item of items) {
keys.add(item.task + item.project + item.employee);
Expand Down
2 changes: 1 addition & 1 deletion test/ts_connected.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3346,7 +3346,7 @@ describe('scope compatibility', () => {
expect(entity2Params.ExpressionAttributeValues[':pk']).to.equal(`$test_subtestz#prop1_${prop1}`);

const entity2Response = await entity2.query.test({ prop1 }).go();
console.log(JSON.stringify({entity2Params, entity2Response}, null, 4));

expect(entity2Response.data.length).to.equal(1);
expect(entity2Response.data[0]).to.deep.equal(record2);
})
Expand Down

0 comments on commit 51dcb68

Please sign in to comment.