Files
hermes-web-ui/tests/desktop/preload-auth.test.ts
2026-07-03 19:09:20 +08:00

15 lines
518 B
TypeScript

import { readFileSync } from 'fs'
import { resolve } from 'path'
import { describe, expect, it } from 'vitest'
describe('desktop preload auth', () => {
it('does not auto-login with default credentials', () => {
const source = readFileSync(resolve('packages/desktop/src/preload/index.ts'), 'utf-8')
expect(source).not.toContain('/api/auth/login')
expect(source).not.toContain('DEFAULT_PASSWORD')
expect(source).not.toContain('DEFAULT_USERNAME')
expect(source).not.toContain('autoLogin')
})
})