forked from hajush/introjs
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathticTacToeTest.js
More file actions
24 lines (21 loc) · 880 Bytes
/
ticTacToeTest.js
File metadata and controls
24 lines (21 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var assert = require('chai').assert;
var TicTacToe = require('./ticTacToe');
xdescribe("Tic Tac Toe", function() {
it("can place an x at 1, 1", function() {
//Arrange
var ticTacToe = new TicTacToe();
//Act
ticTacToe.set(1, 1, "X");
var atOneOne = ticTacToe.get(1, 1, "X");
//Assert
assert.equal(atOneOne, "X");
});
xit("can place an o at 1, 1", function() {});
xit("can place an x at 1, 1, and o at 2,2", function() {});
xit("can place an x at 1,1 2,2 and 3,3", function() {});
xit("can convert the grid to a 3 line string for display", function() {});
xit("can convert a grid with o in center to a string", function() {});
xit("can show x wins when x is at 1,1 1,2 and 1,3", function() {});
xit("can show o wins when o is at 1,1 2,1 and 3,1", function() {});
xit("can show x wins when x is in the diagonal", function() {});
});