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
8301c25a
Commit
8301c25a
authored
Jan 17, 2022
by
dzubova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set date explicitely in summary_details test
parent
a2aa897b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ee/spec/frontend/subscriptions/buy_addons_shared/components/order_summary/summary_details_spec.js
...s_shared/components/order_summary/summary_details_spec.js
+5
-2
No files found.
ee/spec/frontend/subscriptions/buy_addons_shared/components/order_summary/summary_details_spec.js
View file @
8301c25a
import
{
GlSprintf
}
from
'
@gitlab/ui
'
;
import
SummaryDetails
from
'
ee/subscriptions/buy_addons_shared/components/order_summary/summary_details.vue
'
;
import
{
shallowMountExtended
}
from
'
helpers/vue_test_utils_helper
'
;
import
{
useFakeDate
}
from
'
helpers/fake_date
'
;
describe
(
'
SummaryDetails
'
,
()
=>
{
useFakeDate
(
2021
,
0
,
16
);
let
wrapper
;
const
createComponent
=
(
props
=
{})
=>
{
...
...
@@ -88,7 +91,7 @@ describe('SummaryDetails', () => {
it
(
'
renders subscription period
'
,
()
=>
{
expect
(
findSubscriptionPeriod
().
isVisible
()).
toBe
(
true
);
expect
(
findSubscriptionPeriod
().
text
()).
toBe
(
'
J
ul 6, 2020 - Jul 6, 2021
'
);
expect
(
findSubscriptionPeriod
().
text
()).
toBe
(
'
J
an 16, 2021 - Jan 16, 2022
'
);
});
});
...
...
@@ -99,7 +102,7 @@ describe('SummaryDetails', () => {
it
(
'
renders subscription period
'
,
()
=>
{
expect
(
findSubscriptionPeriod
().
isVisible
()).
toBe
(
true
);
expect
(
findSubscriptionPeriod
().
text
()).
toBe
(
'
J
ul 6, 2020
- Feb 6, 2021
'
);
expect
(
findSubscriptionPeriod
().
text
()).
toBe
(
'
J
an 16, 2021
- Feb 6, 2021
'
);
});
});
...
...
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