Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Mar 11, 2024
1 parent ad91493 commit 7b929d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/base.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,8 @@ test('close with promises', (t) => {
stream.end()
})

test('support Transform streams', (t) => {
// TODO: why isn't `plan: 7` counted correctly?
const { deepEqual, ifError } = tspl(t, { plan: 7 })
test('support Transform streams', async (t) => {
const { deepEqual, ifError, completed } = tspl(t, { plan: 7 })

const expected1 = [{
level: 30,
Expand Down Expand Up @@ -437,4 +436,5 @@ test('support Transform streams', (t) => {
const lines = expected1.map(JSON.stringify).join('\n')
stream1.write(lines)
stream1.end()
await completed
})

0 comments on commit 7b929d1

Please sign in to comment.