Skip to content

Instantly share code, notes, and snippets.

Embed
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')
suite.addBatch
'exists':
topic: -> new Tour
'An instance is constructed': (tour) ->
assert.isObject tour
'board':
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