diff --git a/package.json b/package.json index 0cc5215..3d1cbe8 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "devDependencies": { "browserify": "^9.0.3", "funcunit": "^3.0.0", - "steal-qunit": "0.0.3" + "steal-qunit": "^2.0.0" } } diff --git a/test-steal.js b/test-steal.js index f811510..1643d37 100644 --- a/test-steal.js +++ b/test-steal.js @@ -9,18 +9,18 @@ require("can/view/stache/stache"); F.attach(QUnit); QUnit.module("bit-tabs", { - setup: function(){ + beforeEach: function(assert) { var template = can.stache("

can-tabs

CanJS provides the MV*StealJS provides the infrastructure.") $("body").append(template()); } }); -test("Basics", function(){ +QUnit.test("Basics", function(assert) { F("bit-tabs").exists("There is bit-tabs"); }); -test("Clicking something", function(){ +QUnit.test("Clicking something", function(assert) { F("bit-tabs li:nth(1)").click(); F("bit-panel:nth(1)").text("StealJS provides the infrastructure.", "Clicking works"); });