Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sparesti-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
idatt2106_2024_01
sparesti-frontend
Merge requests
!28
Saving path component
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Saving path component
saving-path-component
into
development
Overview
0
Commits
5
Pipelines
1
Changes
2
Merged
Maria Elizabeth Pauna Lane
requested to merge
saving-path-component
into
development
1 year ago
Overview
0
Commits
5
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
development
development (base)
and
latest version
latest version
80aa11e1
5 commits,
1 year ago
2 files
+
130
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/components/__tests__/SavingPath.spec.js
0 → 100644
+
25
−
0
Options
import
{
mount
}
from
'
@vue/test-utils
'
import
{
describe
,
it
,
expect
,
beforeEach
}
from
'
vitest
'
import
SavingPath
from
'
@/components/SavingPath.vue
'
import
{
Card
}
from
"
@/components/ui/card/index.js
"
;
describe
(
'
Saving Path: Component testing
'
,
()
=>
{
let
wrapper
;
beforeEach
(()
=>
{
wrapper
=
mount
(
SavingPath
)
})
it
(
'
renders the component
'
,
()
=>
{
expect
(
wrapper
.
exists
()).
toBe
(
true
)
})
it
(
'
renders card component
'
,
()
=>
{
const
card
=
wrapper
.
findComponent
(
Card
)
expect
(
card
.
exists
()).
toBe
(
true
)
})
it
(
'
renders nine list items
'
,
()
=>
{
const
listItems
=
wrapper
.
findAll
(
'
li
'
)
expect
(
listItems
.
length
).
toBe
(
9
)
})
})
\ No newline at end of file
Loading