Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Vows test sample
vows = require 'vows'
assert = require 'assert'
class Board
class Tour
constructor: ->
@board = new Board
suite = vows.describe('KnightsTour')
topic: -> new Tour
'An instance is constructed': (tour) ->
assert.isObject tour
topic: (tour) -> tour.board
'exists': (board) ->
assert.isObject board
suite.export module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment