Add JS specs for Array extensions

This commit is contained in:
Robert Speicher 2015-05-26 18:43:14 -04:00
parent 4560954404
commit 39d5a4878f

View file

@ -0,0 +1,12 @@
#= require extensions/array
describe 'Array extensions', ->
describe 'first', ->
it 'returns the first item', ->
arr = [0, 1, 2, 3, 4, 5]
expect(arr.first()).toBe(0)
describe 'last', ->
it 'returns the last item', ->
arr = [0, 1, 2, 3, 4, 5]
expect(arr.last()).toBe(5)