Commit 8301c25a authored by dzubova's avatar dzubova

Set date explicitely in summary_details test

parent a2aa897b
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('Jul 6, 2020 - Jul 6, 2021');
expect(findSubscriptionPeriod().text()).toBe('Jan 16, 2021 - Jan 16, 2022');
});
});
......@@ -99,7 +102,7 @@ describe('SummaryDetails', () => {
it('renders subscription period', () => {
expect(findSubscriptionPeriod().isVisible()).toBe(true);
expect(findSubscriptionPeriod().text()).toBe('Jul 6, 2020 - Feb 6, 2021');
expect(findSubscriptionPeriod().text()).toBe('Jan 16, 2021 - Feb 6, 2021');
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment