This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |