From 6ce09d9a27c00ed4cee566feb13886b61f067d90 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 6 Mar 2016 13:24:44 -0800 Subject: [PATCH] Minor test tweaks due to whitespace differences in v2 vs v4. --- test/throws.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/test/throws.js b/test/throws.js index b8cf056f..b33be6cf 100644 --- a/test/throws.js +++ b/test/throws.js @@ -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'