From 03339f87c95d5892e81f801de6d0f0664840f2e9 Mon Sep 17 00:00:00 2001 From: Cherif BOUCHELAGHEM Date: Wed, 30 Oct 2019 16:22:07 +0100 Subject: [PATCH] Landscaper: Migrate to Qunit2 --- package.json | 2 +- test-steal.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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"); });