Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Oct 14, 2024
1 parent 4712470 commit e06b3c7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
4 changes: 2 additions & 2 deletions e2e/cases/html/title/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('should generate default title correctly', async () => {
expect(html).toContain('<title>Rsbuild App</title>');
});

test('should allow setting empty title to override default title', async () => {
test('should allow setting empty title to unset the default title', async () => {
const rsbuild = await build({
cwd: __dirname,
rsbuildConfig: {
Expand All @@ -34,7 +34,7 @@ test('should allow setting empty title to override default title', async () => {

const html =
files[Object.keys(files).find((file) => file.endsWith('foo.html'))!];
expect(html).toContain('<title></title>');
expect(html).not.toContain('<title>');
});

test('should generate title correctly', async () => {
Expand Down
13 changes: 0 additions & 13 deletions e2e/cases/html/unset-title/index.test.ts

This file was deleted.

7 changes: 0 additions & 7 deletions e2e/cases/html/unset-title/rsbuild.config.ts

This file was deleted.

1 change: 0 additions & 1 deletion e2e/cases/html/unset-title/src/index.js

This file was deleted.

0 comments on commit e06b3c7

Please sign in to comment.