Skip to content

Commit

Permalink
format check
Browse files Browse the repository at this point in the history
  • Loading branch information
shaiu committed Sep 21, 2024
1 parent 0a4df65 commit d84d485
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/renderer/src/store/ConfigStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
type Exporter,
type Importer,
type Log,
type OutputVendorName, DownalodChromeEvent,
type OutputVendorName,
DownalodChromeEvent,
} from '../types';

interface AccountScrapingData {
Expand Down
7 changes: 5 additions & 2 deletions packages/renderer/src/store/Store.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { configStore } from './ConfigStore';
import {

Check failure on line 2 in packages/renderer/src/store/Store.test.tsx

View workflow job for this annotation

GitHub Actions / eslint

Imports "Credentials" are only used as type
AccountType,
CompanyTypes,
type Config, Credentials,
type Config,
Credentials,
type Exporter,
type Importer,
} from '../types';
Expand Down Expand Up @@ -34,7 +35,9 @@ describe('Store', () => {
const visaCalImporter = store.importers.find(
(i: Importer) => i.companyId === 'visaCal',
);
const maxImporter = store.importers.find((i: Importer) => i.companyId === 'max');
const maxImporter = store.importers.find(
(i: Importer) => i.companyId === 'max',
);

expect(discountImporter).toMatchSnapshot();
expect(visaCalImporter).toMatchSnapshot();
Expand Down
9 changes: 7 additions & 2 deletions packages/renderer/vitest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ vi.mock('electron', () => {
return Promise.resolve({ name: 'Test App', version: '1.0.0' });
}
if (channel === 'getConfig') {
return Promise.resolve(JSON.stringify({ config: { someKey: 'someValue' } }));
return Promise.resolve(
JSON.stringify({ config: { someKey: 'someValue' } }),
);
}
if (channel === 'getLogsInfo') {
return Promise.resolve({ logsFolder: '/path/to/logs', otherData: 'someValue' }); // Ensure logsFolder is defined
return Promise.resolve({
logsFolder: '/path/to/logs',
otherData: 'someValue',
});
}
return Promise.resolve(null);
});
Expand Down
2 changes: 1 addition & 1 deletion vitest.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default {
testTimeout: 30_000,
hookTimeout: 30_000,
},
};
};

0 comments on commit d84d485

Please sign in to comment.