Skip to content

Commit

Permalink
Minor test tweaks due to whitespace differences in v2 vs v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 6, 2016
1 parent 71af8ba commit 6ce09d9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions test/throws.js
Expand Up @@ -41,65 +41,65 @@ tap.test('failures', function (tt) {
+ 'not ok 1 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage() + "] message: '" + getNonFunctionMessage() + "' }\n"
+ ' ...\n'
+ 'not ok 2 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage(null) + "] message: '" + getNonFunctionMessage(null) + "' }\n"
+ ' ...\n'
+ 'not ok 3 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage(true) + "] message: '" + getNonFunctionMessage(true) + "' }\n"
+ ' ...\n'
+ 'not ok 4 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage(false) + "] message: '" + getNonFunctionMessage(false) + "' }\n"
+ ' ...\n'
+ 'not ok 5 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage('abc') + "] message: '" + getNonFunctionMessage('abc') + "' }\n"
+ ' ...\n'
+ 'not ok 6 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage(/a/g) + "] message: '" + getNonFunctionMessage(/a/g) + "' }\n"
+ ' ...\n'
+ 'not ok 7 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage([]) + "] message: '" + getNonFunctionMessage([]) + "' }\n"
+ ' ...\n'
+ 'not ok 8 should throw\n'
+ ' ---\n'
+ ' operator: throws\n'
+ ' expected: |-\n'
+ ' expected:\n'
+ ' undefined\n'
+ ' actual: |-\n'
+ ' actual:\n'
+ " { [TypeError: " + getNonFunctionMessage({}) + "] message: '" + getNonFunctionMessage({}) + "' }\n"
+ ' ...\n'
+ '# function\n'
Expand Down

0 comments on commit 6ce09d9

Please sign in to comment.