@@ -32,7 +32,7 @@ run('when browserified', function () {
32
32
33
33
describe ( 'depd(namespace)' , function ( ) {
34
34
it ( 'creates deprecated function' , function ( ) {
35
- assert . equal ( typeof depd ( 'test' ) , 'function' )
35
+ assert . strictEqual ( typeof depd ( 'test' ) , 'function' )
36
36
} )
37
37
38
38
it ( 'requires namespace' , function ( ) {
@@ -43,13 +43,13 @@ run('when browserified', function () {
43
43
describe ( 'deprecate(message)' , function ( ) {
44
44
it ( 'should not log message' , function ( ) {
45
45
function callold ( ) { mylib . old ( ) }
46
- assert . equal ( captureStderr ( callold ) , '' )
46
+ assert . strictEqual ( captureStderr ( callold ) , '' )
47
47
} )
48
48
49
49
describe ( 'when message omitted' , function ( ) {
50
50
it ( 'should not log message' , function ( ) {
51
51
function callold ( ) { mylib . automsgnamed ( ) }
52
- assert . equal ( captureStderr ( callold ) , '' )
52
+ assert . strictEqual ( captureStderr ( callold ) , '' )
53
53
} )
54
54
} )
55
55
} )
@@ -62,24 +62,24 @@ run('when browserified', function () {
62
62
63
63
it ( 'should not log on call to function' , function ( ) {
64
64
function callold ( ) { mylib . oldfn ( ) }
65
- assert . equal ( captureStderr ( callold ) , '' )
65
+ assert . strictEqual ( captureStderr ( callold ) , '' )
66
66
} )
67
67
68
68
it ( 'should have same arity' , function ( ) {
69
- assert . equal ( mylib . oldfn . length , 2 )
69
+ assert . strictEqual ( mylib . oldfn . length , 2 )
70
70
} )
71
71
72
72
it ( 'should pass arguments' , function ( ) {
73
73
var ret
74
74
function callold ( ) { ret = mylib . oldfn ( 1 , 2 ) }
75
- assert . equal ( captureStderr ( callold ) , '' )
76
- assert . equal ( ret , 2 )
75
+ assert . strictEqual ( captureStderr ( callold ) , '' )
76
+ assert . strictEqual ( ret , 2 )
77
77
} )
78
78
79
79
describe ( 'when message omitted' , function ( ) {
80
80
it ( 'should not log message' , function ( ) {
81
81
function callold ( ) { mylib . oldfnauto ( ) }
82
- assert . equal ( captureStderr ( callold ) , '' )
82
+ assert . strictEqual ( captureStderr ( callold ) , '' )
83
83
} )
84
84
} )
85
85
} )
@@ -105,69 +105,69 @@ run('when browserified', function () {
105
105
106
106
it ( 'should not log on access to property' , function ( ) {
107
107
function callprop ( ) { return mylib . propa }
108
- assert . equal ( captureStderr ( callprop ) , '' )
108
+ assert . strictEqual ( captureStderr ( callprop ) , '' )
109
109
} )
110
110
111
111
it ( 'should not log on setting property' , function ( ) {
112
112
var val
113
113
function callprop ( ) { val = mylib . propa }
114
114
function setprop ( ) { mylib . propa = 'newval' }
115
- assert . equal ( captureStderr ( setprop ) , '' )
116
- assert . equal ( captureStderr ( callprop ) , '' )
117
- assert . equal ( val , 'newval' )
115
+ assert . strictEqual ( captureStderr ( setprop ) , '' )
116
+ assert . strictEqual ( captureStderr ( callprop ) , '' )
117
+ assert . strictEqual ( val , 'newval' )
118
118
} )
119
119
120
120
describe ( 'when obj is a function' , function ( ) {
121
121
it ( 'should not log on access to property on function' , function ( ) {
122
122
function callprop ( ) { return mylib . fnprop . propa }
123
- assert . equal ( captureStderr ( callprop ) , '' )
123
+ assert . strictEqual ( captureStderr ( callprop ) , '' )
124
124
} )
125
125
126
126
it ( 'should not generate message on named function' , function ( ) {
127
127
function callprop ( ) { return mylib . fnprop . propautomsg }
128
- assert . equal ( captureStderr ( callprop ) , '' )
128
+ assert . strictEqual ( captureStderr ( callprop ) , '' )
129
129
} )
130
130
} )
131
131
132
132
describe ( 'when value descriptor' , function ( ) {
133
133
it ( 'should not log on access and set' , function ( ) {
134
134
function callold ( ) { return mylib . propa }
135
135
function setold ( ) { mylib . propa = 'val' }
136
- assert . equal ( captureStderr ( callold ) , '' )
137
- assert . equal ( captureStderr ( setold ) , '' )
136
+ assert . strictEqual ( captureStderr ( callold ) , '' )
137
+ assert . strictEqual ( captureStderr ( setold ) , '' )
138
138
} )
139
139
140
140
it ( 'should not log on set to non-writable' , function ( ) {
141
141
function callold ( ) { return mylib . propget }
142
142
function setold ( ) { mylib . propget = 'val' }
143
- assert . equal ( captureStderr ( callold ) , '' )
144
- assert . equal ( captureStderr ( setold ) , '' )
143
+ assert . strictEqual ( captureStderr ( callold ) , '' )
144
+ assert . strictEqual ( captureStderr ( setold ) , '' )
145
145
} )
146
146
} )
147
147
148
148
describe ( 'when accessor descriptor' , function ( ) {
149
149
it ( 'should log on access and set' , function ( ) {
150
150
function callold ( ) { return mylib . propdyn }
151
151
function setold ( ) { mylib . propdyn = 'val' }
152
- assert . equal ( captureStderr ( callold ) , '' )
153
- assert . equal ( captureStderr ( setold ) , '' )
152
+ assert . strictEqual ( captureStderr ( callold ) , '' )
153
+ assert . strictEqual ( captureStderr ( setold ) , '' )
154
154
} )
155
155
156
156
it ( 'should not log on access when no accessor' , function ( ) {
157
157
function callold ( ) { return mylib . propsetter }
158
- assert . equal ( captureStderr ( callold ) , '' )
158
+ assert . strictEqual ( captureStderr ( callold ) , '' )
159
159
} )
160
160
161
161
it ( 'should not log on set when no setter' , function ( ) {
162
162
function callold ( ) { mylib . propgetter = 'val' }
163
- assert . equal ( captureStderr ( callold ) , '' )
163
+ assert . strictEqual ( captureStderr ( callold ) , '' )
164
164
} )
165
165
} )
166
166
167
167
describe ( 'when message omitted' , function ( ) {
168
168
it ( 'should not generate message for method call on named function' , function ( ) {
169
169
function callold ( ) { return mylib . propauto }
170
- assert . equal ( captureStderr ( callold ) , '' )
170
+ assert . strictEqual ( captureStderr ( callold ) , '' )
171
171
} )
172
172
} )
173
173
} )
0 commit comments