Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
39d5a487
Commit
39d5a487
authored
May 26, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add JS specs for Array extensions
parent
45609544
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/javascripts/extensions/array_spec.js.coffee
spec/javascripts/extensions/array_spec.js.coffee
+12
-0
No files found.
spec/javascripts/extensions/array_spec.js.coffee
0 → 100644
View file @
39d5a487
#= 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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment