From 54e6af002bbbb709c06d94a15c09c8b0a7835337 Mon Sep 17 00:00:00 2001 From: Cherif BOUCHELAGHEM Date: Wed, 30 Oct 2019 16:21:46 +0100 Subject: [PATCH] Landscaper: Migrate to Qunit2 --- package.json | 2 +- test/slider_test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9447f58..309539c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "grunt": "~0.4.1", "grunt-cli": "^0.1.13", "steal": "bitovi/steal#npm", - "steal-qunit": "bitovi/steal-qunit#master", + "steal-qunit": "^2.0.0", "steal-tools": "bitovi/steal-tools#npm", "testee": "^0.1.8" }, diff --git a/test/slider_test.js b/test/slider_test.js index 017a8f1..ca467ab 100644 --- a/test/slider_test.js +++ b/test/slider_test.js @@ -7,11 +7,11 @@ import $ from "jquery"; var template = can.stache(""); QUnit.module("can-slider",{ - setup: function(){ + beforeEach: function(assert) { $("#qunit-fixture").append(template()); } }); -QUnit.test("basics", function(){ - QUnit.ok( $("can-slider").html(), "has text"); +QUnit.test("basics", function(assert) { + assert.ok( $("can-slider").html(), "has text"); });