Skip to content

Commit

Permalink
remove unnecessary structuredClone
Browse files Browse the repository at this point in the history
  • Loading branch information
m5r committed Jul 11, 2024
1 parent dcafa3e commit 8cab016
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/e2e/edit-app-settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ describe('edit-app-settings', () => {

it('disables a language, recompile, and push app settings', async () => {
const url = await getProjectUrl(projectName);
const initialSettings = await request.get({ url: `${url}/api/v1/settings`, json: true });

// TODO: remove next line when we upgrade eslint and its `parserOptions.ecmaVersion` setting to parse syntax supported by node 18+
// eslint-disable-next-line no-undef
const baseSettings = structuredClone(initialSettings);
const baseSettings = await request.get({ url: `${url}/api/v1/settings`, json: true });
baseSettings.languages = baseSettings.languages.map(language => {
if (language.locale === 'en') {
language.enabled = false;
Expand Down Expand Up @@ -63,6 +59,5 @@ describe('edit-app-settings', () => {
});
expect(newSettings.locale).to.equal('fr');
expect(newSettings.locale_outgoing).to.equal('fr');

});
});

0 comments on commit 8cab016

Please sign in to comment.