From 3196dff297d6e7c33ae4b1d2f59fc5fc303b992f Mon Sep 17 00:00:00 2001 From: Cherif BOUCHELAGHEM Date: Fri, 24 May 2019 17:32:53 +0100 Subject: [PATCH] Update a test to Qunit2 --- constructor/store/store_test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/constructor/store/store_test.js b/constructor/store/store_test.js index fe91d68b..8cc46481 100644 --- a/constructor/store/store_test.js +++ b/constructor/store/store_test.js @@ -397,7 +397,9 @@ QUnit.test("instanceStore adds/removes instances based on list updates.", functi }).then(done, done); }); -QUnit.test("list store keeps date types with query", function(){ +QUnit.test("list store keeps date types with query", function(assert){ + var done = assert.async(); + var Person = function(values){ assign(this, values); }; @@ -441,10 +443,8 @@ QUnit.test("list store keeps date types with query", function(){ //var query = list[connection.listQueryProp]; var listKey = Object.keys(connection.listStore.set)[0]; var listKeyObject = JSON.parse(listKey); - QUnit.equal(listKeyObject.date, d.toISOString()); - start(); + assert.equal(listKeyObject.date, d.toISOString()); + done(); }, testHelpers.logErrorAndStart); - stop(); - });