source:
imaps-frontend/node_modules/es-iterator-helpers/test/helpers/testIterator.js
Last change on this file was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 217 bytes |
Rev | Line | |
---|---|---|
[d565449] | 1 | 'use strict'; |
2 | ||
3 | var iterate = require('iterate-iterator'); | |
4 | ||
5 | module.exports = function testIterator(iterator, expected, t, msg) { | |
6 | t.deepEqual(iterate(iterator), expected, 'iterator yields expected values: ' + msg); | |
7 | }; |
Note:
See TracBrowser
for help on using the repository browser.