THRIFT-2976: add browserify support and tests
Client: nodejs
Patch: Andrew de Andrade
diff --git a/lib/nodejs/test/test-cases.js b/lib/nodejs/test/test-cases.js
index 3386657..0d13cdd 100644
--- a/lib/nodejs/test/test-cases.js
+++ b/lib/nodejs/test/test-cases.js
@@ -1,6 +1,5 @@
'use strict';
-var assert = require('assert');
var ttypes = require('./gen-nodejs/ThriftTest_types');
//all Languages in UTF-8
@@ -55,17 +54,19 @@
['testByte', -1],
['testByte', -127],
['testI32', -1],
+ ['testDouble', -5.2098523],
+ ['testDouble', 7.012052175215044],
+ ['testEnum', ttypes.Numberz.ONE]
+];
+
+var simpleLoose = [
['testI64', 5],
['testI64', -5],
['testI64', 734359738368],
['testI64', -34359738368],
['testI64', -734359738368],
- ['testDouble', -5.2098523],
- ['testDouble', 7.012052175215044],
- ['testEnum', ttypes.Numberz.ONE],
['testTypedef', 69]
-];
-
+]
var mapout = {};
for (var i = 0; i < 5; ++i) {
@@ -118,6 +119,7 @@
};
module.exports.simple = simple;
+module.exports.simpleLoose = simpleLoose;
module.exports.deep = deep;
module.exports.out = out;