aboutsummaryrefslogtreecommitdiff
path: root/node_modules/constants-browserify/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/constants-browserify/test.js')
-rw-r--r--node_modules/constants-browserify/test.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/constants-browserify/test.js b/node_modules/constants-browserify/test.js
new file mode 100644
index 000000000..58cc30198
--- /dev/null
+++ b/node_modules/constants-browserify/test.js
@@ -0,0 +1,18 @@
+'use strict';
+
+var Assert = require('assert')
+var Constants = require('./')
+
+try {
+ var nodeConstants = require('constants')
+
+ Assert.deepEqual(nodeConstants, Constants, 'The constants file was not equal')
+}
+
+catch (e) {
+ console.error(e)
+ console.error('\nTests failed!')
+ process.exit(1)
+}
+
+console.info('Tests passed!')