Skip to content
代码片段 群组 项目
提交 39d5a487 编辑于 作者: Robert Speicher's avatar Robert Speicher
浏览文件

Add JS specs for Array extensions

上级 45609544
No related branches found
No related tags 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% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册