diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/frontend/registry/explorer/components/details_page/details_header_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/frontend/registry/explorer/components/details_page/details_header_spec.js b/spec/frontend/registry/explorer/components/details_page/details_header_spec.js index ec883886026..f642c66832b 100644 --- a/spec/frontend/registry/explorer/components/details_page/details_header_spec.js +++ b/spec/frontend/registry/explorer/components/details_page/details_header_spec.js @@ -1,5 +1,6 @@ import { shallowMount } from '@vue/test-utils'; import { GlSprintf } from '@gitlab/ui'; +import { useFakeDate } from 'helpers/fake_date'; import TitleArea from '~/vue_shared/components/registry/title_area.vue'; import component from '~/registry/explorer/components/details_page/details_header.vue'; import { DETAILS_PAGE_TITLE } from '~/registry/explorer/constants'; @@ -15,6 +16,9 @@ describe('Details Header', () => { }, }; + // set the date to Dec 4, 2020 + useFakeDate(2020, 11, 4); + const findLastUpdatedAndVisibility = () => wrapper.find('[data-testid="updated-and-visibility"]'); const waitForMetadataItems = async () => { |