We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26af55c commit b89da83Copy full SHA for b89da83
test/unit/qunit-utils.js
@@ -207,9 +207,11 @@ function checkLightClone( light ) {
207
function checkLightJsonWriting( light, json ) {
208
209
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" );
+
+ var object = json.object;
+ QUnit.assert.equalKey( light, object, 'type' );
213
+ QUnit.assert.equalKey( light, object, 'uuid' );
214
+ QUnit.assert.equal( object.id, undefined, "should not persist id" );
215
216
}
217
@@ -227,7 +229,7 @@ function checkLightJsonReading( json, light ) {
227
229
function checkLightJsonRoundtrip( light ) {
228
230
231
var json = light.toJSON();
- checkLightJsonWriting( light, json.object );
232
+ checkLightJsonWriting( light, json );
233
checkLightJsonReading( json, light );
234
235
0 commit comments