Skip to content

Commit

Permalink
test(date): set static date (#6512)
Browse files Browse the repository at this point in the history
this way it doesn't need to be updated yearly. Follow up on #6511
  • Loading branch information
Haroenv authored Jan 7, 2025
1 parent b6ececb commit ddd709c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2125,7 +2125,7 @@ If you want to publish it as a public scoped package, run \`npm publish --access
exports[`Templates InstantSearch.js widget File content: LICENSE.md 1`] = `
"The MIT License (MIT)
Copyright (c) 2025-present algolia.
Copyright (c) 2020-present algolia.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the \\"Software\\"), to deal
Expand Down
1 change: 1 addition & 0 deletions packages/create-instantsearch-app/e2e/templates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ describe('Templates', () => {
attributesForFaceting: ['ais.dynamicWidgets', 'facet1', 'facet2'],
organization: 'algolia',
enableInsights: true,
currentYear: '2020',
};

configFilePath = `${temporaryDirectory}/${templateConfig.appName}.config.json`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ async function postProcessAnswers({
);

return {
currentYear: new Date().getFullYear(),
...combinedAnswers,
...alternativeNames,
libraryVersion,
template: templatePath,
installation: optionsFromArguments.installation,
currentYear: new Date().getFullYear(),
attributesToDisplay:
Array.isArray(combinedAnswers.attributesToDisplay) &&
combinedAnswers.attributesToDisplay.filter(
Expand Down

0 comments on commit ddd709c

Please sign in to comment.