working companion prototype
This commit is contained in:
@@ -52,13 +52,13 @@ describe('AutomationConfig', () => {
|
||||
expect(mode).toBe('test');
|
||||
});
|
||||
|
||||
it('should return production mode when NODE_ENV=development', () => {
|
||||
it('should return development mode when NODE_ENV=development', () => {
|
||||
process.env.NODE_ENV = 'development';
|
||||
delete process.env.AUTOMATION_MODE;
|
||||
|
||||
const mode = getAutomationMode();
|
||||
|
||||
expect(mode).toBe('production');
|
||||
expect(mode).toBe('development');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -128,7 +128,7 @@ describe('AutomationConfig', () => {
|
||||
const config = loadAutomationConfig();
|
||||
|
||||
expect(config.nutJs?.windowTitle).toBe('iRacing');
|
||||
expect(config.nutJs?.templatePath).toBe('./resources/templates');
|
||||
expect(config.nutJs?.templatePath).toBe('./resources/templates/iracing');
|
||||
expect(config.nutJs?.confidence).toBe(0.9);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user