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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
bc31040e
Commit
bc31040e
authored
Dec 10, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed lint warning and propose fail or warning
parent
3f768f9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
package.json
package.json
+1
-1
spec/javascripts/project_title_spec.js
spec/javascripts/project_title_spec.js
+9
-7
No files found.
package.json
View file @
bc31040e
{
{
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"eslint"
:
"eslint --ext .js,.js.es6 ."
,
"eslint"
:
"eslint --
max-warnings 0 --
ext .js,.js.es6 ."
,
"eslint-fix"
:
"npm run eslint -- --fix"
,
"eslint-fix"
:
"npm run eslint -- --fix"
,
"eslint-report"
:
"npm run eslint -- --format html --output-file ./eslint-report.html"
"eslint-report"
:
"npm run eslint -- --format html --output-file ./eslint-report.html"
},
},
...
...
spec/javascripts/project_title_spec.js
View file @
bc31040e
...
@@ -21,16 +21,18 @@
...
@@ -21,16 +21,18 @@
return
this
.
project
=
new
Project
();
return
this
.
project
=
new
Project
();
});
});
return
describe
(
'
project list
'
,
function
()
{
return
describe
(
'
project list
'
,
function
()
{
beforeEach
((
function
(
_this
)
{
var
fakeAjaxResponse
=
function
fakeAjaxResponse
(
req
)
{
return
function
()
{
_this
.
projects_data
=
fixture
.
load
(
'
projects.json
'
)[
0
];
return
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(
function
(
req
)
{
var
d
;
var
d
;
expect
(
req
.
url
).
toBe
(
'
/api/v3/projects.json?simple=true
'
);
expect
(
req
.
url
).
toBe
(
'
/api/v3/projects.json?simple=true
'
);
d
=
$
.
Deferred
();
d
=
$
.
Deferred
();
d
.
resolve
(
_
this
.
projects_data
);
d
.
resolve
(
this
.
projects_data
);
return
d
.
promise
();
return
d
.
promise
();
});
};
beforeEach
((
function
(
_this
)
{
return
function
()
{
_this
.
projects_data
=
fixture
.
load
(
'
projects.json
'
)[
0
];
return
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(
fakeAjaxResponse
.
bind
(
_this
));
};
};
})(
this
));
})(
this
));
it
(
'
to show on toggle click
'
,
(
function
(
_this
)
{
it
(
'
to show on toggle click
'
,
(
function
(
_this
)
{
...
...
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