diff --git a/googletrendsgame/server/utilTest.js b/googletrendsgame/server/utilTest.js new file mode 100644 index 0000000..9f27081 --- /dev/null +++ b/googletrendsgame/server/utilTest.js @@ -0,0 +1,3 @@ +const util = require('./utils'); + +console.log(util.getRandomWords(100)); diff --git a/googletrendsgame/server/utils.js b/googletrendsgame/server/utils.js index 42a1547..b9cdc63 100644 --- a/googletrendsgame/server/utils.js +++ b/googletrendsgame/server/utils.js @@ -1,6 +1,6 @@ var fs = require('fs'); -const WORD_FILE_PATH = '../words/words.txt'; +const WORD_FILE_PATH = '../../words/words.txt'; //loads words from word file var words = [];