Skip to content

Commit

Permalink
Add a test about iterables
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jul 8, 2019
1 parent e188d3b commit 3e4d7c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/cartesian.js
@@ -1,5 +1,14 @@
import test from 'ava'

import testEach from '../src/main.js'

import { testSnapshots } from './helpers/snapshot.js'

testSnapshots('Normal iterations', [[['a']], [['a', 'b'], ['c', 'd']]])

testSnapshots('No arguments', [[]])

test('should return an iterable', t => {
const iterable = testEach(['a'])
t.is(typeof iterable[Symbol.iterator], 'function')
})

0 comments on commit 3e4d7c7

Please sign in to comment.