var should = require('chai').should(),
    index = require('../index')

describe('Chess', function() {

  it('Is a checkmate', function() {
    let chess = new index.Chess()
    chess.board = [[ -4, 6, 0, -5, -6, -3, -2, -4 ],
        [ -1, 0, -1, -1, -1, -1, -1, -1 ],
        [ 0, 0, -3, 0, 0, 0, 0, 0 ],
        [ 0, 0, 0, 0, 0, 0, 0, 0 ],
        [ 0, 0, 0, 0, 0, 0, 0, 0 ],
        [ 0, 0, 0, 0, 0, 0, 0, 0 ],
        [ 1, 1, 1, 1, 0, 1, 1, 1 ],
        [ 4, 2, 3, 5, 0, 3, 2, 4 ]]
    chess.setAllowedMoves()
    chess.isCheckMate().should.equal(true)
  })

  it('Is a stalemate', function() {
    let chess = new index.Chess()
    chess.board = [[ -4, 0, 0, 0, -6, -3, -2, -4 ],
        [ -1, 0, -1, -1, -1, 0, -1, -1 ],
        [ 0, 0, 0, 0, 0, 0, 0, 0 ],
        [ 0, 0, 0, 0, 0, 0, 0, 0 ],
        [ 0, 0, 0, 0, 0, 0, -5, 0 ],
        [ 0, 0, 0, 0, 0, 0, 0, -1 ],
        [ 0, 0, 0, 0, 0, 0, 0, 1 ],
        [ 0, 0, 0, 0, 0, 0, 0, 6 ]]
    chess.setAllowedMoves()
    chess.isStaleMate().should.equal(true)
  })
})
@@ -1014,11 +1014,194 @@
 ue)%0A  %7D)
+%0A%0A  it('Is neither checkmate or stalemate', function() %7B%0A    let chess = new index.Chess()%0A    chess.isStaleMate().should.equal(false)%0A    chess.isCheckMate().should.equal(false)%0A  %7D)
 %0A%7D)

Test case for starting board