Skip to content

Commit

Permalink
[MWPW-165791] move contentRoot to config setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DKos95 committed Jan 21, 2025
1 parent ce394bd commit 4d7a01e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/blocks/table/table.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { replaceKey } from '../../../libs/features/placeholders.js';
document.body.innerHTML = await readFile({ path: './mocks/body.html' });
const { default: init } = await import('../../../libs/blocks/table/table.js');
const locales = { '': { ietf: 'en-US', tk: 'hah7vzn.css' } };
const conf = { locales };
const conf = { locales, contentRoot: '/test/blocks/table/mocks' };
setConfig(conf);
const config = getConfig();

Expand Down Expand Up @@ -118,7 +118,6 @@ describe('table and tablemetadata', () => {
});

it('should apply aria-label to all selects within .filters on mobile', async () => {
config.locale.contentRoot = '/test/blocks/table/mocks';
window.innerWidth = 375;
window.dispatchEvent(new Event('resize'));
const ariaLabel = await replaceKey('choose-table-column', config);
Expand Down

0 comments on commit 4d7a01e

Please sign in to comment.