Skip to content

Instantly share code, notes, and snippets.

View lingo's full-sized avatar

Luke Hudson lingo

View GitHub Profile
var request = require('supertest-as-promised'),
Promise = require('bluebird'),
should = require('should');
var game = require('../game.js').app;
// Instead of assertScoreEquals, we now fetch the score
// and assert when the promise returns a value
var getScore = function() {
return request(game).get('/score').expect(200)