Skip to content

Commit b89da83

Browse files
author
simonThiele
committed
fix light json check
1 parent 26af55c commit b89da83

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/unit/qunit-utils.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ function checkLightClone( light ) {
207207
function checkLightJsonWriting( light, json ) {
208208

209209
QUnit.assert.equal( json.metadata.version, "4.4", "check metadata version" );
210-
QUnit.assert.equalKey( light, json, 'type' );
211-
QUnit.assert.equalKey( light, json, 'uuid' );
212-
QUnit.assert.equal( json.id, undefined, "should not persist id" );
210+
211+
var object = json.object;
212+
QUnit.assert.equalKey( light, object, 'type' );
213+
QUnit.assert.equalKey( light, object, 'uuid' );
214+
QUnit.assert.equal( object.id, undefined, "should not persist id" );
213215

214216
}
215217

@@ -227,7 +229,7 @@ function checkLightJsonReading( json, light ) {
227229
function checkLightJsonRoundtrip( light ) {
228230

229231
var json = light.toJSON();
230-
checkLightJsonWriting( light, json.object );
232+
checkLightJsonWriting( light, json );
231233
checkLightJsonReading( json, light );
232234

233235
}

0 commit comments

Comments
 (0)