UNPKG

conductor

Version:

A modern & functional JavaScript utility library

10 lines (8 loc) 235 B
const next = require('../src/next') describe('next', () => { it('should call the next method of an iterable', () => { const array = [2, 4] const iterable = array[Symbol.iterator]() expect(next(iterable)).toBe(2) }) })