chore(lint): burn down remaining warnings to zero
This commit is contained in:
+10
-2
@@ -50,7 +50,11 @@ models:
|
||||
const result = loadConfigSafe(configPath);
|
||||
expect(result.config).toBeDefined();
|
||||
expect(result.error).toBeUndefined();
|
||||
expect(result.config!.telegram?.bot_token).toBe('test-token');
|
||||
const config = result.config;
|
||||
if (!config) {
|
||||
throw new Error('Expected loaded config');
|
||||
}
|
||||
expect(config.telegram?.bot_token).toBe('test-token');
|
||||
});
|
||||
|
||||
it('loads env vars from FLYNN_ENV_FILE before parsing config', () => {
|
||||
@@ -78,7 +82,11 @@ models:
|
||||
const result = loadConfigSafe(configPath);
|
||||
expect(result.config).toBeDefined();
|
||||
expect(result.error).toBeUndefined();
|
||||
expect(result.config!.telegram?.bot_token).toBe('test-token');
|
||||
const config = result.config;
|
||||
if (!config) {
|
||||
throw new Error('Expected loaded config');
|
||||
}
|
||||
expect(config.telegram?.bot_token).toBe('test-token');
|
||||
|
||||
if (prevEnvFile !== undefined) {
|
||||
process.env.FLYNN_ENV_FILE = prevEnvFile;
|
||||
|
||||
Reference in New Issue
Block a user