Skip to content

Commit

Permalink
replace contains with match in hapi-pre-17 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 committed Jun 8, 2021
1 parent 8611f65 commit 82e1c74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/versioned/hapi/hapi-pre-17/render-v6.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ test('agent instrumentation of Hapi', function(t) {

var first = errors[0]
t.ok(first, 'have the first error')
t.contains(first[2], 'ohno', 'got the expected error')
t.match(first[2], 'ohno', 'got the expected error')

t.end()
})
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/hapi/hapi-pre-17/render-v7.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ tap.test('agent instrumentation of Hapi', function(t) {

var first = errors[0]
t.ok(first, 'have the first error')
t.contains(first[2], 'ohno', 'got the expected error')
t.match(first[2], 'ohno', 'got the expected error')

t.end()
})
Expand Down
2 changes: 1 addition & 1 deletion test/versioned/hapi/hapi-pre-17/render.tap.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ tap.test('agent instrumentation of Hapi', function(t) {

var first = errors[0]
t.ok(first, 'have the first error')
t.contains(first[2], 'ohno', 'got the expected error')
t.match(first[2], 'ohno', 'got the expected error')

t.end()
})
Expand Down

0 comments on commit 82e1c74

Please sign in to comment.