Property member builder tests now use object and deepEqual() to ensure that property is copied as intended
parent
f25ae7cb43
commit
b34e0b45f6
|
@ -32,7 +32,7 @@ var common = require( './common' ),
|
||||||
|
|
||||||
// stub values
|
// stub values
|
||||||
name = 'foo',
|
name = 'foo',
|
||||||
value = 'bar'
|
value = { bar: 'baz' }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ function assertOnlyVisibility( vis, name, value, message )
|
||||||
visi = check[ i ];
|
visi = check[ i ];
|
||||||
cmp = ( visi === vis ) ? value : undefined;
|
cmp = ( visi === vis ) ? value : undefined;
|
||||||
|
|
||||||
assert.equal(
|
assert.deepEqual(
|
||||||
members[ visi ][ name ],
|
members[ visi ][ name ],
|
||||||
cmp,
|
cmp,
|
||||||
message
|
message
|
||||||
|
|
Loading…
Reference in New Issue