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
0125b47a
Commit
0125b47a
authored
Mar 08, 2020
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove localVue from storage counter specs
parent
4d107898
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
ee/spec/frontend/storage_counter/components/app_spec.js
ee/spec/frontend/storage_counter/components/app_spec.js
+2
-5
ee/spec/frontend/storage_counter/components/project_spec.js
ee/spec/frontend/storage_counter/components/project_spec.js
+2
-5
ee/spec/frontend/storage_counter/components/storage_row_spec.js
...c/frontend/storage_counter/components/storage_row_spec.js
+2
-4
No files found.
ee/spec/frontend/storage_counter/components/app_spec.js
View file @
0125b47a
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
StorageApp
from
'
ee/storage_counter/components/app.vue
'
;
import
Project
from
'
ee/storage_counter/components/project.vue
'
;
import
{
projects
,
withRootStorageStatistics
}
from
'
../data
'
;
const
localVue
=
createLocalVue
();
describe
(
'
Storage counter app
'
,
()
=>
{
let
wrapper
;
...
...
@@ -17,10 +15,9 @@ describe('Storage counter app', () => {
},
};
wrapper
=
shallowMount
(
localVue
.
extend
(
StorageApp
)
,
{
wrapper
=
shallowMount
(
StorageApp
,
{
propsData
:
{
namespacePath
:
'
h5bp
'
,
helpPagePath
:
'
help
'
},
mocks
:
{
$apollo
},
localVue
,
});
}
...
...
ee/spec/frontend/storage_counter/components/project_spec.js
View file @
0125b47a
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
Project
from
'
ee/storage_counter/components/project.vue
'
;
import
ProjectAvatar
from
'
~/vue_shared/components/project_avatar/default.vue
'
;
...
...
@@ -22,14 +22,11 @@ const data = {
},
};
const
localVue
=
createLocalVue
();
function
factory
(
project
)
{
wrapper
=
shallowMount
(
localVue
.
extend
(
Project
)
,
{
wrapper
=
shallowMount
(
Project
,
{
propsData
:
{
project
,
},
localVue
,
});
}
...
...
ee/spec/frontend/storage_counter/components/storage_row_spec.js
View file @
0125b47a
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
StorageRow
from
'
ee/storage_counter/components/storage_row.vue
'
;
import
{
numberToHumanSize
}
from
'
~/lib/utils/number_utils
'
;
...
...
@@ -7,15 +7,13 @@ const data = {
name
:
'
LFS Package
'
,
value
:
1293346
,
};
const
localVue
=
createLocalVue
();
function
factory
({
name
,
value
})
{
wrapper
=
shallowMount
(
localVue
.
extend
(
StorageRow
)
,
{
wrapper
=
shallowMount
(
StorageRow
,
{
propsData
:
{
name
,
value
,
},
localVue
,
});
}
...
...
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