Skip to content

Commit

Permalink
maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners committed Mar 11, 2024
1 parent 7b929d1 commit abe3209
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/base.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ test('null support', (t) => {
stream.end()
})

test('broken json', (t) => {
const { deepEqual } = tspl(t, { plan: 2 })
test('broken json', async (t) => {
const { deepEqual, completed } = tspl(t, { plan: 2 })
const expected = '{ "truncated'
const stream = build(function (source) {
source.on('unknown', function (line, error) {
Expand All @@ -87,6 +87,7 @@ test('broken json', (t) => {

stream.write(expected + '\n')
stream.end()
await completed
})

test('pure values', (t) => {
Expand Down

0 comments on commit abe3209

Please sign in to comment.