Skip to content

Commit

Permalink
remove unnecessary logging from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abumq committed Jul 25, 2023
1 parent 63726f6 commit 59b58fa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/deep-json.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
const assert = require('assert');
const { json } = require('../src');

const logger = {
startTime: console.log,
endTime: console.log,
}

describe('When we have JSON with deep promiss', async () => {
const item = async () => 1
const jsonItem = () => json({
Expand Down Expand Up @@ -38,12 +33,10 @@ describe('When we have JSON with deep promiss', async () => {
depth1_5: jsonItemAsync(),
depth1_6: itemAsync(),

}, { name: 'inner', description: 'start', ...logger })
})
}
const result = await produce();

console.log(JSON.stringify(result, null, 2))

it('depth 1 is correctly resolved', () => {
assert.equal(result.depth1_1, 1);
});
Expand Down

0 comments on commit 59b58fa

Please sign in to comment.