mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-27 16:47:13 +09:00
Tests for handleInventory(), 93% avg coverage
This commit is contained in:
1 parent
2a1badf7cb
commit
d2f122936e
5 files changed
+163
-34
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user