Browse Source

fixed utils unit test

master
ritfsaecdaq 6 years ago
parent
commit
08a0e10c9d
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      googletrendsgame/server/utilTest.js
  2. +1
    -1
      googletrendsgame/server/utils.js

+ 3
- 0
googletrendsgame/server/utilTest.js View File

@ -0,0 +1,3 @@
const util = require('./utils');
console.log(util.getRandomWords(100));

+ 1
- 1
googletrendsgame/server/utils.js View File

@ -1,6 +1,6 @@
var fs = require('fs'); var fs = require('fs');
const WORD_FILE_PATH = '../words/words.txt';
const WORD_FILE_PATH = '../../words/words.txt';
//loads words from word file //loads words from word file
var words = []; var words = [];

Loading…
Cancel
Save