Fix/typescript problems (#60)
* fix: extended typescript checking to main and fixed all typescript errors * fix: removed unnecessary type --------- Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
@@ -265,13 +265,10 @@ describe('MediaEngine', () => {
|
||||
});
|
||||
|
||||
it('should avoid duplicate context log when context is unchanged', () => {
|
||||
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
|
||||
|
||||
mediaEngine.setProjectContext('same-project', '/tmp/data', '/tmp/internal');
|
||||
mediaEngine.setProjectContext('same-project', '/tmp/data', '/tmp/internal');
|
||||
|
||||
expect(consoleLogSpy).toHaveBeenCalledTimes(1);
|
||||
consoleLogSpy.mockRestore();
|
||||
expect(mediaEngine.getProjectContext()).toBe('same-project');
|
||||
});
|
||||
|
||||
it('should allow changing project context multiple times', () => {
|
||||
|
||||
Reference in New Issue
Block a user