diff --git a/models/game.test.js b/models/game.test.js index aae39ea..8f7bc3c 100644 --- a/models/game.test.js +++ b/models/game.test.js @@ -4,7 +4,7 @@ import { Round, Team } from "./round.js"; import RoundResult from "./round_result.js"; import Game from "./game.js"; -QUnit.module("models", function() { +export default function() { QUnit.module("game", function() { QUnit.test("default construction", function(assert) { let game = new Game(); @@ -343,4 +343,4 @@ QUnit.module("models", function() { assert.verifySteps(["event"], "event was triggered"); }); }); -}); +} diff --git a/models/round.test.js b/models/round.test.js index b399987..f0f0308 100644 --- a/models/round.test.js +++ b/models/round.test.js @@ -2,7 +2,7 @@ import { Round, Team } from "./round.js"; -QUnit.module("models", function() { +export default function() { QUnit.module("round", function() { QUnit.test("setup", function(assert) { let round = new Round(); @@ -168,4 +168,4 @@ QUnit.module("models", function() { assert.verifySteps(["event"], "event was triggered"); }); }); -}); +} diff --git a/models/round_result.test.js b/models/round_result.test.js index 5d2ad60..bb9b641 100644 --- a/models/round_result.test.js +++ b/models/round_result.test.js @@ -3,7 +3,7 @@ import { Team } from "./round.js"; import RoundResult from "./round_result.js"; -QUnit.module("models", function() { +export default function() { QUnit.module("RoundResult", function() { QUnit.test("regular construction", function(assert) { let rr = new RoundResult(2, Team.We); @@ -49,4 +49,4 @@ QUnit.module("models", function() { new RoundResult(deso); }); }); -}); +} diff --git a/models/session.test.js b/models/session.test.js index c841456..2f7c36c 100644 --- a/models/session.test.js +++ b/models/session.test.js @@ -4,7 +4,7 @@ import { Round, Team } from "./round.js"; import Game from "./game.js"; import Session from "./session.js"; -QUnit.module("models", function() { +export default function() { QUnit.module("session", function() { QUnit.test("initial state", function(assert) { let session = new Session(); @@ -248,4 +248,4 @@ QUnit.module("models", function() { assert.throws(function() { new Session(deso); }, "unfinished past"); }); }); -}); +} diff --git a/test.html b/test.html index e0ca443..78d0e2e 100644 --- a/test.html +++ b/test.html @@ -11,10 +11,7 @@
- - - - + \ No newline at end of file diff --git a/test.js b/test.js new file mode 100644 index 0000000..9311c67 --- /dev/null +++ b/test.js @@ -0,0 +1,11 @@ +import round from "./models/round.test.js"; +import roundResult from "./models/round_result.test.js"; +import game from "./models/game.test.js"; +import session from "./models/session.test.js"; + +QUnit.module("models", function() { + round(); + roundResult(); + game(); + session(); +});