fix: update browser title
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m5s

This commit is contained in:
Song367 2026-03-21 15:12:19 +08:00
parent 13672d1156
commit baba71e73d
2 changed files with 16 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Google AI Studio App</title>
<title>AI Video Translation Studio</title>
</head>
<body>
<div id="root"></div>

15
src/browser-title.test.ts Normal file
View File

@ -0,0 +1,15 @@
import { readFileSync } from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import { describe, expect, it } from 'vitest';
const currentDir = path.dirname(fileURLToPath(import.meta.url));
const indexHtmlPath = path.resolve(currentDir, '../index.html');
describe('browser title', () => {
it('uses the approved browser title', () => {
expect(readFileSync(indexHtmlPath, 'utf8')).toContain(
'<title>AI Video Translation Studio</title>',
);
});
});