Skip to content

Commit

Permalink
test: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ramboz committed Oct 31, 2023
1 parent 90e630b commit 5e7192a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/setup/setup.test.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<script src="/some/path/scripts/scripts.js"></script>
</head>
<body>
<script type="module">
Expand All @@ -28,6 +27,9 @@
});

it('setup - sets some globals', () => {
const script = document.createElement('script');
script.src = '/some/path/scripts/scripts.js';
document.head.append(script);
setup();
expect(window.hlx).to.not.be.null;
expect(window.hlx.codeBasePath).to.be.equal('/some/path');
Expand Down

0 comments on commit 5e7192a

Please sign in to comment.