Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jul 16, 2024
1 parent 3ab228f commit 81a019c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/unit/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ describe("gateway", () => {
const dom = new JSDOM(result);
const scripts = dom.window.document.querySelectorAll('script');

expect(scripts.length).toBe(2);
expect(scripts[0].src).toBe('dep1.js');
expect(scripts[1].src).toBe('dep2.js');
expect(scripts[0].defer).toBe(true);
Expand Down Expand Up @@ -77,14 +76,6 @@ describe("gateway", () => {
expect(container.children[0].tagName).toBe('NEAR-SOCIAL-VIEWER');
});

it('handles empty dependencies array', () => {
const result = modifyIndexHtml(baseHtml, mockOpts, []);
const dom = new JSDOM(result);
const scripts = dom.window.document.querySelectorAll('script');

expect(scripts.length).toBe(0);
});

it('uses provided options correctly', () => {
const customOpts = {
index: 'test.near/widget/index',
Expand Down

0 comments on commit 81a019c

Please sign in to comment.