Skip to content

Commit

Permalink
Fix remote code
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Jul 27, 2024
1 parent 3d1959a commit 34832f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wxt/e2e/tests/remote-code.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TestProject } from '../utils';

describe('Remote Code', () => {
it('should download "url:*" modules and include them in the final bundle', async () => {
const url = 'https://code.jquery.com/jquery-3.7.1.slim.min.js';
const url = 'https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js';
const project = new TestProject();
project.addFile(
'entrypoints/popup.ts',
Expand All @@ -16,7 +16,7 @@ describe('Remote Code', () => {
const output = await project.serializeFile('.output/chrome-mv3/popup.js');
expect(output).toContain(
// Some text that will hopefully be in future versions of this script
'jQuery v3.7.1',
'lodash.com',
);
expect(output).not.toContain(url);
expect(
Expand Down

0 comments on commit 34832f9

Please sign in to comment.