Skip to content

Commit

Permalink
remove dependency from search-filters.e2e.ts file (#8840)
Browse files Browse the repository at this point in the history
  • Loading branch information
jatin2008 committed Aug 23, 2023
1 parent c9fdf24 commit ce855ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/search/search-filters.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from '@alfresco/adf-testing';
import { browser } from 'protractor';
import { SearchConfiguration } from './search.config';
import * as moment from 'moment';
import { getYear } from 'date-fns';

describe('Search Filters', () => {

Expand Down Expand Up @@ -123,7 +123,7 @@ describe('Search Filters', () => {
});

it('[C291980] Should group search facets under specified labels', async () => {
const currentYear = moment().year();
const currentYear = getYear(new Date());

jsonFile.facetQueries.queries[0] = {
query: `created:${currentYear}`,
Expand Down

0 comments on commit ce855ec

Please sign in to comment.