* chore: add core module test cases * chore: fix tests * chore: add code coverage report * chore: split coverage step * chore: split coverage step * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * Update jan-electron-linter-and-test.yml * chore: update tests * chore: add web utils test cases * chore: add restful and helper tests * chore: add tests
17 lines
354 B
TypeScript
17 lines
354 B
TypeScript
|
|
import { v1Router } from './v1';
|
|
import { commonRouter } from './common';
|
|
|
|
test('should define v1Router function', () => {
|
|
expect(v1Router).toBeDefined();
|
|
});
|
|
|
|
test('should register commonRouter', () => {
|
|
const mockApp = {
|
|
register: jest.fn(),
|
|
};
|
|
v1Router(mockApp as any);
|
|
expect(mockApp.register).toHaveBeenCalledWith(commonRouter);
|
|
});
|
|
|