Skip to content

Commit

Permalink
variable for unit test body mock
Browse files Browse the repository at this point in the history
  • Loading branch information
meganthecoder committed Apr 26, 2024
1 parent 642cac8 commit c221428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/scripts/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe('Libs', () => {
});

const metadata = await readFile({ path: './mocks/head.html' });
const body = await readFile({ path: './mocks/body.html' });

window.lana = { log: () => {} };

Expand All @@ -58,7 +59,7 @@ describe('Auto Blocks', () => {

beforeEach(async () => {
sinon.stub(window.lana, 'log');
document.body.innerHTML = await readFile({ path: './mocks/body.html' });
document.body.innerHTML = body;
});

afterEach(() => {
Expand Down

0 comments on commit c221428

Please sign in to comment.