diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/es6-iterator/test/is-iterable.js | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/es6-iterator/test/is-iterable.js')
-rw-r--r-- | node_modules/es6-iterator/test/is-iterable.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/node_modules/es6-iterator/test/is-iterable.js b/node_modules/es6-iterator/test/is-iterable.js index 438ad349c..5787351a4 100644 --- a/node_modules/es6-iterator/test/is-iterable.js +++ b/node_modules/es6-iterator/test/is-iterable.js @@ -1,7 +1,7 @@ -'use strict'; +"use strict"; -var iteratorSymbol = require('es6-symbol').iterator - , Iterator = require('../'); +var iteratorSymbol = require("es6-symbol").iterator + , Iterator = require("../"); module.exports = function (t, a) { var iterator; @@ -10,10 +10,14 @@ module.exports = function (t, a) { a(t({}), false, "Plain object"); a(t({ length: 0 }), false, "Array-like"); iterator = {}; - iterator[iteratorSymbol] = function () { return new Iterator([]); }; + iterator[iteratorSymbol] = function () { + return new Iterator([]); +}; a(t(iterator), true, "Iterator"); a(t([]), true, "Array"); - a(t('foo'), true, "String"); - a(t(''), true, "Empty string"); - a(t((function () { return arguments; }())), true, "Arguments"); + a(t("foo"), true, "String"); + a(t(""), true, "Empty string"); + a(t(function () { + return arguments; +}()), true, "Arguments"); }; |