Skip to content

Commit

Permalink
Fix failing video tests (#1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo authored Oct 17, 2023
1 parent 73b6c74 commit 0cfd668
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/blocks/video/video.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import { readFile } from '@web/test-runner-commands';
import { expect } from '@esm-bundle/chai';
import { setConfig } from '../../../libs/utils/utils.js';

const { default: init } = await import('../../../libs/blocks/video/video.js');
document.body.innerHTML = await readFile({ path: './mocks/body.html' });

describe('video uploaded using franklin bot', () => {
beforeEach(() => {
setConfig({});
});

it('decorates video', async () => {
const block = document.querySelector('.video.normal');
const a = block.querySelector('a');
Expand Down

0 comments on commit 0cfd668

Please sign in to comment.