From 28bbc7ff205e3550b0fd445124efba0e680ee255 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Tue, 6 Aug 2024 21:17:45 +0000 Subject: [PATCH] Build commit 62cc6d9e0caebe8ea24f99fd50b338224f09a07f --- feed.xml | 2 +- resources/example-fail.html | 20 ++++++++++++-------- resources/game.test.js | 10 +++++++++- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/feed.xml b/feed.xml index d18d727b5..07d5dac36 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2024-08-01T23:06:44+00:00https://qunitjs.com/feed.xmlQUnitThe powerful, easy-to-use JavaScript testing framework. \ No newline at end of file +Jekyll2024-08-06T21:17:42+00:00https://qunitjs.com/feed.xmlQUnitThe powerful, easy-to-use JavaScript testing framework. \ No newline at end of file diff --git a/resources/example-fail.html b/resources/example-fail.html index a676a0828..53989f407 100644 --- a/resources/example-fail.html +++ b/resources/example-fail.html @@ -9,20 +9,24 @@ - diff --git a/resources/game.test.js b/resources/game.test.js index 27d7849c4..40e94e301 100644 --- a/resources/game.test.js +++ b/resources/game.test.js @@ -37,7 +37,7 @@ QUnit.module('game', (hooks) => { assert.false(board.find(bob)); }); - QUnit.test('move', (assert) => { + QUnit.test('moveRight', (assert) => { const alice = new game.Robot(); board.add(alice); @@ -56,5 +56,13 @@ QUnit.module('game', (hooks) => { board.moveRight(bob); }, board.BoardObjectError, 'not on board'); }); + + QUnit.test('moveLeft', (assert) => { + const alice = new game.Robot(); + board.add(alice); + + board.moveLeft(alice); + assert.propContains(board.find(alice), { x: 2, y: 0 }, 'teleport to far end'); + }); }); });