fix: update browser title
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m5s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m5s
This commit is contained in:
parent
13672d1156
commit
baba71e73d
@ -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
15
src/browser-title.test.ts
Normal 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>',
|
||||
);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user