wildfire chat server source initial submit

This commit is contained in:
heavyrain2012
2019-03-16 17:04:23 +08:00
parent e59217bd10
commit cab3ca0916
1466 changed files with 528862 additions and 15919 deletions
+18
View File
@@ -0,0 +1,18 @@
var tape = require("tape");
var protobuf = require("..");
var util = protobuf.util;
if (util.isNode)
tape.test("under node.js", function(test) {
test.ok(util.fs && util.fs.readFile, "the fs module should be available");
test.ok(util.Long && util.Long.isLong, "the long module should be available");
test.end();
});
else
tape.test("in the browser", function(test) {
test.ok(util.fs === null, "the fs module should not be available");
test.ok(util.Long && util.Long.isLong, "the long module should be available to test cases");
test.end();
});