Skip to content
Snippets Groups Projects
Commit 39d5a487 authored by Robert Speicher's avatar Robert Speicher
Browse files

Add JS specs for Array extensions

parent 45609544
No related branches found
No related tags found
No related merge requests found
#= 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment