Skip to content

Commit

Permalink
add final assertion on number of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Aug 14, 2020
1 parent 502aa83 commit c2c7390
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/errors.js
Expand Up @@ -624,6 +624,8 @@ test('POST query which throws, with JIT enabled, twice', async (t) => {
t.is(line.err.type, expected.errorType)
}
}

t.is(errors.length, 0)
})

test('app.graphql which throws, with JIT enabled, twice', async (t) => {
Expand Down Expand Up @@ -682,4 +684,6 @@ test('app.graphql which throws, with JIT enabled, twice', async (t) => {
t.is(line.err.type, expected.errorType)
}
}

t.is(errors.length, 0)
})

0 comments on commit c2c7390

Please sign in to comment.