Skip to content

Commit

Permalink
Merge pull request #474 from canjs/update-test-for-qunit2
Browse files Browse the repository at this point in the history
Update a test to Qunit2
  • Loading branch information
cherifGsoul authored May 24, 2019
2 parents 5b2e56d + 3196dff commit e8860e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions constructor/store/store_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down Expand Up @@ -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();

});

0 comments on commit e8860e0

Please sign in to comment.