@@ -154,11 +154,11 @@ test('apply - replace', function (t) {
154
154
155
155
// plain
156
156
res = Change . apply ( single , { cn : [ 'old' ] } )
157
- t . deepEqual ( res . cn , [ 'new' ] )
157
+ t . same ( res . cn , [ 'new' ] )
158
158
159
159
// multiple
160
160
res = Change . apply ( single , { cn : [ 'old' , 'also' ] } )
161
- t . deepEqual ( res . cn , [ 'new' ] )
161
+ t . same ( res . cn , [ 'new' ] )
162
162
163
163
// empty
164
164
res = Change . apply ( empty , { cn : [ 'existing' ] } )
@@ -167,15 +167,15 @@ test('apply - replace', function (t) {
167
167
168
168
// absent
169
169
res = Change . apply ( single , { dn : [ 'otherjunk' ] } )
170
- t . deepEqual ( res . cn , [ 'new' ] )
170
+ t . same ( res . cn , [ 'new' ] )
171
171
172
172
// scalar formatting "success"
173
173
res = Change . apply ( single , { cn : 'old' } , true )
174
174
t . equal ( res . cn , 'new' )
175
175
176
176
// scalar formatting "failure"
177
177
res = Change . apply ( twin , { cn : 'old' } , true )
178
- t . deepEqual ( res . cn , [ 'new' , 'two' ] )
178
+ t . same ( res . cn , [ 'new' , 'two' ] )
179
179
180
180
t . end ( )
181
181
} )
@@ -192,27 +192,27 @@ test('apply - add', function (t) {
192
192
193
193
// plain
194
194
res = Change . apply ( single , { cn : [ 'old' ] } )
195
- t . deepEqual ( res . cn , [ 'old' , 'new' ] )
195
+ t . same ( res . cn , [ 'old' , 'new' ] )
196
196
197
197
// multiple
198
198
res = Change . apply ( single , { cn : [ 'old' , 'also' ] } )
199
- t . deepEqual ( res . cn , [ 'old' , 'also' , 'new' ] )
199
+ t . same ( res . cn , [ 'old' , 'also' , 'new' ] )
200
200
201
201
// absent
202
202
res = Change . apply ( single , { dn : [ 'otherjunk' ] } )
203
- t . deepEqual ( res . cn , [ 'new' ] )
203
+ t . same ( res . cn , [ 'new' ] )
204
204
205
205
// scalar formatting "success"
206
206
res = Change . apply ( single , { } , true )
207
207
t . equal ( res . cn , 'new' )
208
208
209
209
// scalar formatting "failure"
210
210
res = Change . apply ( single , { cn : 'old' } , true )
211
- t . deepEqual ( res . cn , [ 'old' , 'new' ] )
211
+ t . same ( res . cn , [ 'old' , 'new' ] )
212
212
213
213
// duplicate add
214
214
res = Change . apply ( single , { cn : 'new' } )
215
- t . deepEqual ( res . cn , [ 'new' ] )
215
+ t . same ( res . cn , [ 'new' ] )
216
216
217
217
t . end ( )
218
218
} )
@@ -229,7 +229,7 @@ test('apply - delete', function (t) {
229
229
230
230
// plain
231
231
res = Change . apply ( single , { cn : [ 'old' , 'new' ] } )
232
- t . deepEqual ( res . cn , [ 'new' ] )
232
+ t . same ( res . cn , [ 'new' ] )
233
233
234
234
// empty
235
235
res = Change . apply ( single , { cn : [ 'old' ] } )
@@ -242,7 +242,7 @@ test('apply - delete', function (t) {
242
242
243
243
// scalar formatting "failure"
244
244
res = Change . apply ( single , { cn : [ 'old' , 'several' , 'items' ] } , true )
245
- t . deepEqual ( res . cn , [ 'several' , 'items' ] )
245
+ t . same ( res . cn , [ 'several' , 'items' ] )
246
246
247
247
// absent
248
248
res = Change . apply ( single , { dn : [ 'otherjunk' ] } )
0 commit comments