@@ -41,66 +41,50 @@ tap.test('failures', function (tt) {
41
41
+ 'not ok 1 should throw\n'
42
42
+ ' ---\n'
43
43
+ ' operator: throws\n'
44
- + ' expected: |-\n'
45
- + ' undefined\n'
46
- + ' actual: |-\n'
47
- + " { [TypeError: " + getNonFunctionMessage ( ) + "] message: '" + getNonFunctionMessage ( ) + "' }\n"
44
+ + ' expected: undefined\n'
45
+ + " actual: { message: '" + getNonFunctionMessage ( ) + "' }\n"
48
46
+ ' ...\n'
49
47
+ 'not ok 2 should throw\n'
50
48
+ ' ---\n'
51
49
+ ' operator: throws\n'
52
- + ' expected: |-\n'
53
- + ' undefined\n'
54
- + ' actual: |-\n'
55
- + " { [TypeError: " + getNonFunctionMessage ( null ) + "] message: '" + getNonFunctionMessage ( null ) + "' }\n"
50
+ + ' expected: undefined\n'
51
+ + " actual: { message: '" + getNonFunctionMessage ( null ) + "' }\n"
56
52
+ ' ...\n'
57
53
+ 'not ok 3 should throw\n'
58
54
+ ' ---\n'
59
55
+ ' operator: throws\n'
60
- + ' expected: |-\n'
61
- + ' undefined\n'
62
- + ' actual: |-\n'
63
- + " { [TypeError: " + getNonFunctionMessage ( true ) + "] message: '" + getNonFunctionMessage ( true ) + "' }\n"
56
+ + ' expected: undefined\n'
57
+ + " actual: { message: '" + getNonFunctionMessage ( true ) + "' }\n"
64
58
+ ' ...\n'
65
59
+ 'not ok 4 should throw\n'
66
60
+ ' ---\n'
67
61
+ ' operator: throws\n'
68
- + ' expected: |-\n'
69
- + ' undefined\n'
70
- + ' actual: |-\n'
71
- + " { [TypeError: " + getNonFunctionMessage ( false ) + "] message: '" + getNonFunctionMessage ( false ) + "' }\n"
62
+ + ' expected: undefined\n'
63
+ + " actual: { message: '" + getNonFunctionMessage ( false ) + "' }\n"
72
64
+ ' ...\n'
73
65
+ 'not ok 5 should throw\n'
74
66
+ ' ---\n'
75
67
+ ' operator: throws\n'
76
- + ' expected: |-\n'
77
- + ' undefined\n'
78
- + ' actual: |-\n'
79
- + " { [TypeError: " + getNonFunctionMessage ( 'abc' ) + "] message: '" + getNonFunctionMessage ( 'abc' ) + "' }\n"
68
+ + ' expected: undefined\n'
69
+ + " actual: { message: '" + getNonFunctionMessage ( 'abc' ) + "' }\n"
80
70
+ ' ...\n'
81
71
+ 'not ok 6 should throw\n'
82
72
+ ' ---\n'
83
73
+ ' operator: throws\n'
84
- + ' expected: |-\n'
85
- + ' undefined\n'
86
- + ' actual: |-\n'
87
- + " { [TypeError: " + getNonFunctionMessage ( / a / g) + "] message: '" + getNonFunctionMessage ( / a / g) + "' }\n"
74
+ + ' expected: undefined\n'
75
+ + " actual: { message: '" + getNonFunctionMessage ( / a / g) + "' }\n"
88
76
+ ' ...\n'
89
77
+ 'not ok 7 should throw\n'
90
78
+ ' ---\n'
91
79
+ ' operator: throws\n'
92
- + ' expected: |-\n'
93
- + ' undefined\n'
94
- + ' actual: |-\n'
95
- + " { [TypeError: " + getNonFunctionMessage ( [ ] ) + "] message: '" + getNonFunctionMessage ( [ ] ) + "' }\n"
80
+ + ' expected: undefined\n'
81
+ + " actual: { message: '" + getNonFunctionMessage ( [ ] ) + "' }\n"
96
82
+ ' ...\n'
97
83
+ 'not ok 8 should throw\n'
98
84
+ ' ---\n'
99
85
+ ' operator: throws\n'
100
- + ' expected: |-\n'
101
- + ' undefined\n'
102
- + ' actual: |-\n'
103
- + " { [TypeError: " + getNonFunctionMessage ( { } ) + "] message: '" + getNonFunctionMessage ( { } ) + "' }\n"
86
+ + ' expected: undefined\n'
87
+ + " actual: { message: '" + getNonFunctionMessage ( { } ) + "' }\n"
104
88
+ ' ...\n'
105
89
+ '# function\n'
106
90
+ 'not ok 9 should throw\n'
0 commit comments