Browse Source

fixed test, removed console.log

pull/31/head
Amir Rajan 4 years ago
parent
commit
cd2cad0f3b
3 changed files with 0 additions and 8 deletions
  1. +0
    -3
      cards.js
  2. +0
    -1
      game.js
  3. +0
    -4
      spec/describe_Game_spec.js

+ 0
- 3
cards.js View File

@ -5,8 +5,6 @@ function getDeck() {
}
function black() {
// Get the cards from the json database and filter them to work out.
console.log(card_data.blackCards.length);
function filter(v) {
return v.pick === 1;
}
@ -14,7 +12,6 @@ function black() {
}
function white() {
console.log(card_data.whiteCards.length);
return card_data.whiteCards;
}


+ 0
- 1
game.js View File

@ -165,7 +165,6 @@ function setCurrentBlackCard(game) {
var index = Math.floor(Math.random() * game.deck.black.length);
game.currentBlackCard = game.deck.black[index].text;
game.deck.black.splice(index, 1);
console.log("New Black Card: "+game.currentBlackCard);
}
function getPlayer(gameId, playerId) {


+ 0
- 4
spec/describe_Game_spec.js View File

@ -72,10 +72,6 @@ describe('multi-libs', function() {
describe('4 people join a game', function() {
beforeEach(startGame);
it('the game is no longer listed', function() {
expect(Game.list().length).toBe(0);
});
it('the game is started with', function() {
expect(currentGame.isStarted).toBe(true);
});


Loading…
Cancel
Save