From 34f0854b61f6cab94ec957a41dd3155090461435 Mon Sep 17 00:00:00 2001 From: Obaid Ahmed Date: Tue, 6 Jun 2017 10:51:16 -0400 Subject: [PATCH] Replaced QUnit.ok with QUnit.equal --- test/test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 067782a..8837e21 100644 --- a/test/test.js +++ b/test/test.js @@ -13,6 +13,7 @@ QUnit.module("can-define: map and list combined"); QUnit.test("basics", function(){ var items = new DefineMap({ people: [{name: "Justin"},{name: "Brian"}], count: 1000 }); + QUnit.ok(items.people instanceof types.DefineList, "people is list"); QUnit.ok(items.people.item(0) instanceof types.DefineMap, "1st object is Map"); QUnit.ok(items.people.item(1) instanceof types.DefineMap, "2nd object is Map"); @@ -67,7 +68,7 @@ QUnit.test("default 'observable' type prevents Type from working (#29)", functio }); QUnit.ok( m.l[0] instanceof M, "is instance" ); - QUnit.ok(m.l[0].id, "5", "correct props"); + QUnit.equal(m.l[0].id, 5, "correct props"); }); QUnit.test("inline DefineList Type", function(){ @@ -84,7 +85,7 @@ QUnit.test("inline DefineList Type", function(){ }); QUnit.ok( m.l[0] instanceof M, "is instance" ); - QUnit.ok(m.l[0].id, "5", "correct props"); + QUnit.equal(m.l[0].id, 5, "correct props"); }); QUnit.test("recursively `get`s (#31)", function(){