aboutsummaryrefslogtreecommitdiff
path: root/node_modules/has-symbol-support-x/tests/spec
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/has-symbol-support-x/tests/spec')
-rw-r--r--node_modules/has-symbol-support-x/tests/spec/test.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/node_modules/has-symbol-support-x/tests/spec/test.js b/node_modules/has-symbol-support-x/tests/spec/test.js
new file mode 100644
index 0000000..0868973
--- /dev/null
+++ b/node_modules/has-symbol-support-x/tests/spec/test.js
@@ -0,0 +1,29 @@
+'use strict';
+
+var hasSymbolSupport;
+if (typeof module === 'object' && module.exports) {
+ require('es5-shim');
+ require('es5-shim/es5-sham');
+ if (typeof JSON === 'undefined') {
+ JSON = {};
+ }
+ require('json3').runInContext(null, JSON);
+ require('es6-shim');
+ var es7 = require('es7-shim');
+ Object.keys(es7).forEach(function (key) {
+ var obj = es7[key];
+ if (typeof obj.shim === 'function') {
+ obj.shim();
+ }
+ });
+ hasSymbolSupport = require('../../index.js');
+} else {
+ hasSymbolSupport = returnExports;
+}
+
+describe('Basic tests', function () {
+ it('results should match', function () {
+ var expected = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
+ expect(hasSymbolSupport).toBe(expected);
+ });
+});