securityos/node_modules/es-iterator-helpers/test/helpers/testIterator.js

8 lines
217 B
JavaScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
'use strict';
var iterate = require('iterate-iterator');
module.exports = function testIterator(iterator, expected, t, msg) {
t.deepEqual(iterate(iterator), expected, 'iterator yields expected values: ' + msg);
};