Sha256: d5bbc8c8e34910605c6af5970e631a337f26c66baf0febe5f16563a30568904e

Contents?: true

Size: 1019 Bytes

Versions: 47

Compression:

Stored size: 1019 Bytes

Contents

"use strict";

var Iterator = require("../../");

module.exports = function (t, a) {
	var i1 = new Iterator(["raz", "dwa", "trzy"])
	  , i2 = new Iterator(["cztery", "pięć", "sześć"])
	  , i3 = new Iterator(["siedem", "osiem", "dziewięć"])

	  , iterator = t.call(i1, i2, i3);

	a.deep(iterator.next(), { done: false, value: "raz" }, "#1");
	a.deep(iterator.next(), { done: false, value: "dwa" }, "#2");
	a.deep(iterator.next(), { done: false, value: "trzy" }, "#3");
	a.deep(iterator.next(), { done: false, value: "cztery" }, "#4");
	a.deep(iterator.next(), { done: false, value: "pięć" }, "#5");
	a.deep(iterator.next(), { done: false, value: "sześć" }, "#6");
	a.deep(iterator.next(), { done: false, value: "siedem" }, "#7");
	a.deep(iterator.next(), { done: false, value: "osiem" }, "#8");
	a.deep(iterator.next(), { done: false, value: "dziewięć" }, "#9");
	a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
	a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");
};

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
govuk_publishing_components-16.20.0 node_modules/es6-iterator/test/#/chain.js
govuk_publishing_components-16.19.0 node_modules/es6-iterator/test/#/chain.js
govuk_publishing_components-16.18.0 node_modules/es6-iterator/test/#/chain.js
govuk_publishing_components-16.17.0 node_modules/es6-iterator/test/#/chain.js
optimacms-0.4.3 spec/dummy/node_modules/es6-iterator/test/#/chain.js
optimacms-0.4.2 spec/dummy/node_modules/es6-iterator/test/#/chain.js
cortex-0.1.3 spec/dummy/node_modules/es6-iterator/test/#/chain.js