This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-GoogleTrendsGame
mirror of
https://github.com/jrtechs/GoogleTrendsGame.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
fixed utils unit test
master
ritfsaecdaq
7 years ago
parent
6ce303ab0c
commit
08a0e10c9d
2 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
googletrendsgame/server/utilTest.js
+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'
)
;
const
WORD_FILE_PATH
=
'../words/words.txt'
;
const
WORD_FILE_PATH
=
'../
../
words/words.txt'
;
//loads words from word file
var
words
=
[
]
;
Write
Preview
Loading…
Cancel
Save