diff options
Diffstat (limited to 'src/Board/Board.test.ts')
-rw-r--r-- | src/Board/Board.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Board/Board.test.ts b/src/Board/Board.test.ts index 1370a87..7e99581 100644 --- a/src/Board/Board.test.ts +++ b/src/Board/Board.test.ts @@ -3,14 +3,14 @@ import Tile, { Feature } from '../Tile/Tile'; import TileOnBoard from '../Tile/TileOnBoard'; import Board from './Board'; -const { Road, Town, Empty } = Feature; +const { Road, Town, Grass } = Feature; describe('Board', () => { describe('constructor', () => { it('Should initialize empty board with a starting tile', () => { const board = new Board(); assert.strictEqual(board.tiles.length, 1); - assert.deepStrictEqual(board.tiles[0], new TileOnBoard(Road, [Town, Road, Empty, Road])); + assert.deepStrictEqual(board.tiles[0], new TileOnBoard(Road, [Town, Road, Grass, Road])); }); }); @@ -18,7 +18,7 @@ describe('Board', () => { it('Should correctly determine legal moves for 1-tile board', () => { const board = new Board(); const attachTo = board.tiles[0]; - const tile = new Tile(Town, [Empty, Town, Empty, Town]); + const tile = new Tile(Town, [Grass, Town, Grass, Town]); const legalMoves = board.getAttachments(tile); assert.strictEqual(legalMoves.length, 4); |