Tests for handleInventory(), 93% avg coverage

This commit is contained in:
Danielv123 committed 2017-06-17 17:24:24 +02:00
1 parent 2a1badf7cb
commit d2f122936e
5 files changed
+163 -34

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ process.stdin.on('readable', () => {
let inventory = JSON.parse(chunk)
// process inventory of players and ask master for more stuff
functions.handleInventory(inventory, config);
functions.handleInventory(inventory, config, console.log);
} else if(isJson(chunk) && JSON.parse(chunk).factorioPort){
config = JSON.parse(chunk);
}