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
caa6b3eb
Commit
caa6b3eb
authored
Oct 22, 2020
by
Fernando
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove stale unit tests
* Remove unit tests since function was removed
parent
f19bf138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
ee/spec/frontend/api_spec.js
ee/spec/frontend/api_spec.js
+0
-18
No files found.
ee/spec/frontend/api_spec.js
View file @
caa6b3eb
...
...
@@ -889,22 +889,4 @@ describe('Api', () => {
});
});
});
describe
(
'
getApiPath
'
,
()
=>
{
describe
.
each
`
path | params | query | expected
${
undefined
}
|
${{
'
:user_id
'
:
4
}
} |
${{
project_id
:
3
}
} |
${
''
}
${
'
/foo/bar
'
}
|
${{
'
:user_id
'
:
4
}
} |
${{
project_id
:
3
}
} |
${
'
/foo/bar?project_id=3
'
}
${
'
/:user_id/bar
'
}
|
${{
'
:user_id
'
:
4
}
} |
${{
project_id
:
3
}
} |
${
'
/4/bar?project_id=3
'
}
${
'
/:wrong_id/bar
'
}
|
${{
'
:user_id
'
:
4
}
} |
${{
project_id
:
3
}
} |
${
'
/:wrong_id/bar?project_id=3
'
}
${
'
/:first_id/bar/:second_id
'
}
|
${{
'
:first_id
'
:
1
,
'
:second_id
'
:
2
}
} |
${{
project_id
:
3
}
} |
${
'
/1/bar/2?project_id=3
'
}
${
'
/:first_id/bar/:second_id
'
}
|
${{
'
:first_id
'
:
1
,
'
:second_id
'
:
2
}
} |
${{
project_id
:
3
,
user_id
:
7
}
} |
${
'
/1/bar/2?project_id=3&user_id=7
'
}
${
'
/:first_id/bar/:second_id
'
}
|
${
undefined
}
|
${{
project_id
:
3
,
user_id
:
7
}
} |
${
'
/:first_id/bar/:second_id?project_id=3&user_id=7
'
}
${
'
/:first_id/bar/:second_id
'
}
|
${{
'
:first_id
'
:
1
,
'
:second_id
'
:
2
}
} |
${
undefined
}
|
${
'
/1/bar/2
'
}
`
(
'
When path: $path, params: $params, query: $query
'
,
({
path
,
params
,
query
,
expected
})
=>
{
it
(
`returns
${
expected
}
`
,
()
=>
{
expect
(
Api
.
getApiPath
(
path
,
{
params
,
query
})).
toBe
(
expected
);
});
});
});
});
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