Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
9aoy committed Jan 23, 2025
1 parent cf01094 commit f834ebf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/builder/cases/output/assets-retry/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test('should inline assets retry runtime code to html by default', async () => {
const htmlFile = Object.keys(files).find(file => file.endsWith('.html'));

expect(htmlFile).toBeTruthy();
expect(files[htmlFile!].includes('function retry')).toBeTruthy();
expect(files[htmlFile!].includes('onRetry')).toBeTruthy();
});

test('should extract assets retry runtime code when inlineScript is false', async () => {
Expand All @@ -51,5 +51,5 @@ test('should extract assets retry runtime code when inlineScript is false', asyn

expect(htmlFile).toBeTruthy();
expect(retryFile).toBeTruthy();
expect(files[htmlFile!].includes('function retry')).toBeFalsy();
expect(files[htmlFile!].includes('onRetry')).toBeFalsy();
});

0 comments on commit f834ebf

Please sign in to comment.