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
712188d9
Commit
712188d9
authored
Nov 24, 2021
by
Fernando Arias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply unit test name suggestions
* Adjust unit test names
parent
c6bc8605
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_spec.js
...ration/corpus_management/components/corpus_upload_spec.js
+4
-4
No files found.
ee/spec/frontend/security_configuration/corpus_management/components/corpus_upload_spec.js
View file @
712188d9
...
@@ -43,7 +43,7 @@ describe('Corpus Upload', () => {
...
@@ -43,7 +43,7 @@ describe('Corpus Upload', () => {
});
});
describe
(
'
addCorpus mutation
'
,
()
=>
{
describe
(
'
addCorpus mutation
'
,
()
=>
{
it
(
'
called when the add button is clicked from the modal
'
,
async
()
=>
{
it
(
'
gets
called when the add button is clicked from the modal
'
,
async
()
=>
{
createComponent
();
createComponent
();
jest
.
spyOn
(
wrapper
.
vm
,
'
addCorpus
'
).
mockImplementation
(()
=>
{});
jest
.
spyOn
(
wrapper
.
vm
,
'
addCorpus
'
).
mockImplementation
(()
=>
{});
await
wrapper
.
vm
.
$forceUpdate
();
await
wrapper
.
vm
.
$forceUpdate
();
...
@@ -53,7 +53,7 @@ describe('Corpus Upload', () => {
...
@@ -53,7 +53,7 @@ describe('Corpus Upload', () => {
});
});
describe
(
'
resetCorpus mutation
'
,
()
=>
{
describe
(
'
resetCorpus mutation
'
,
()
=>
{
it
(
'
called when the cancel button is clicked from the modal
'
,
async
()
=>
{
it
(
'
gets
called when the cancel button is clicked from the modal
'
,
async
()
=>
{
createComponent
();
createComponent
();
jest
.
spyOn
(
wrapper
.
vm
,
'
resetCorpus
'
).
mockImplementation
(()
=>
{});
jest
.
spyOn
(
wrapper
.
vm
,
'
resetCorpus
'
).
mockImplementation
(()
=>
{});
await
wrapper
.
vm
.
$forceUpdate
();
await
wrapper
.
vm
.
$forceUpdate
();
...
@@ -61,7 +61,7 @@ describe('Corpus Upload', () => {
...
@@ -61,7 +61,7 @@ describe('Corpus Upload', () => {
expect
(
wrapper
.
vm
.
resetCorpus
).
toHaveBeenCalled
();
expect
(
wrapper
.
vm
.
resetCorpus
).
toHaveBeenCalled
();
});
});
it
(
'
called when the upload form triggers a reset
'
,
async
()
=>
{
it
(
'
gets
called when the upload form triggers a reset
'
,
async
()
=>
{
createComponent
();
createComponent
();
jest
.
spyOn
(
wrapper
.
vm
,
'
resetCorpus
'
).
mockImplementation
(()
=>
{});
jest
.
spyOn
(
wrapper
.
vm
,
'
resetCorpus
'
).
mockImplementation
(()
=>
{});
await
wrapper
.
vm
.
$forceUpdate
();
await
wrapper
.
vm
.
$forceUpdate
();
...
@@ -71,7 +71,7 @@ describe('Corpus Upload', () => {
...
@@ -71,7 +71,7 @@ describe('Corpus Upload', () => {
});
});
describe
(
'
uploadCorpus mutation
'
,
()
=>
{
describe
(
'
uploadCorpus mutation
'
,
()
=>
{
it
(
'
called when the upload file is clicked from the modal
'
,
async
()
=>
{
it
(
'
gets
called when the upload file is clicked from the modal
'
,
async
()
=>
{
createComponent
();
createComponent
();
jest
.
spyOn
(
wrapper
.
vm
,
'
beginFileUpload
'
).
mockImplementation
(()
=>
{});
jest
.
spyOn
(
wrapper
.
vm
,
'
beginFileUpload
'
).
mockImplementation
(()
=>
{});
await
wrapper
.
vm
.
$forceUpdate
();
await
wrapper
.
vm
.
$forceUpdate
();
...
...
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