Skip to content

Commit

Permalink
Updating test to return different value
Browse files Browse the repository at this point in the history
  • Loading branch information
dalefrancis88 committed Nov 9, 2018
1 parent 101b095 commit 7365934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pointfree/head.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ test('head pointfree List', t => {
test('head pointfree iterable', t => {
const empty = testIterable(0, 0, 1)
const one = testIterable(1, 1, 1)
const two = testIterable(1, 2, 1)
const two = testIterable(2, 2, 2)

t.equals(head(empty).type(), M.type(), 'returns a Maybe on empty')
t.equals(head(one).type(), M.type(), 'returns a Maybe on one element array')
t.equals(head(two).type(), M.type(), 'returns a Maybe on two element array')

t.equals(head(empty).option('Nothing'), 'Nothing', 'returns a Nothing on empty')
t.equals(head(one).option('Nothing'), 1, 'returns `1` on single element iterable')
t.equals(head(two).option('Nothing'), 1, 'returns `1` on dual element iterable')
t.equals(head(two).option('Nothing'), 2, 'returns `2` on dual element iterable')

t.end()
})

0 comments on commit 7365934

Please sign in to comment.