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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
e427d484
Commit
e427d484
authored
Jan 26, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec fixes after API axios change
parent
2be34788
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
spec/javascripts/lib/utils/users_cache_spec.js
spec/javascripts/lib/utils/users_cache_spec.js
+3
-1
spec/javascripts/repo/components/repo_commit_section_spec.js
spec/javascripts/repo/components/repo_commit_section_spec.js
+4
-2
spec/javascripts/repo/stores/actions_spec.js
spec/javascripts/repo/stores/actions_spec.js
+12
-8
No files found.
spec/javascripts/lib/utils/users_cache_spec.js
View file @
e427d484
...
...
@@ -92,7 +92,9 @@ describe('UsersCache', () => {
apiSpy
=
(
query
,
options
)
=>
{
expect
(
query
).
toBe
(
''
);
expect
(
options
).
toEqual
({
username
:
dummyUsername
});
return
Promise
.
resolve
([
dummyUser
]);
return
Promise
.
resolve
({
data
:
[
dummyUser
],
});
};
UsersCache
.
retrieve
(
dummyUsername
)
...
...
spec/javascripts/repo/components/repo_commit_section_spec.js
View file @
e427d484
...
...
@@ -106,8 +106,10 @@ describe('RepoCommitSection', () => {
changedFiles
=
JSON
.
parse
(
JSON
.
stringify
(
vm
.
$store
.
getters
.
changedFiles
));
spyOn
(
service
,
'
commit
'
).
and
.
returnValue
(
Promise
.
resolve
({
short_id
:
'
1
'
,
stats
:
{},
data
:
{
short_id
:
'
1
'
,
stats
:
{},
},
}));
});
...
...
spec/javascripts/repo/stores/actions_spec.js
View file @
e427d484
...
...
@@ -250,13 +250,15 @@ describe('Multi-file store actions', () => {
describe
(
'
success
'
,
()
=>
{
beforeEach
(()
=>
{
spyOn
(
service
,
'
commit
'
).
and
.
returnValue
(
Promise
.
resolve
({
id
:
'
123456
'
,
short_id
:
'
123
'
,
message
:
'
test message
'
,
committed_date
:
'
date
'
,
stats
:
{
additions
:
'
1
'
,
deletions
:
'
2
'
,
data
:
{
id
:
'
123456
'
,
short_id
:
'
123
'
,
message
:
'
test message
'
,
committed_date
:
'
date
'
,
stats
:
{
additions
:
'
1
'
,
deletions
:
'
2
'
,
},
},
}));
});
...
...
@@ -321,7 +323,9 @@ describe('Multi-file store actions', () => {
describe
(
'
failed
'
,
()
=>
{
beforeEach
(()
=>
{
spyOn
(
service
,
'
commit
'
).
and
.
returnValue
(
Promise
.
resolve
({
message
:
'
failed message
'
,
data
:
{
message
:
'
failed message
'
,
},
}));
});
...
...
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