mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
adds eslint
This commit is contained in:

committed by
Geoff Seemueller

parent
9698fc6f3b
commit
02c3253343
@@ -1,9 +1,10 @@
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
|
||||
import { createRouter } from '../api-router.ts';
|
||||
|
||||
// Mock the vike/server module
|
||||
vi.mock('vike/server', () => ({
|
||||
renderPage: vi.fn()
|
||||
renderPage: vi.fn(),
|
||||
}));
|
||||
|
||||
describe('api-router', () => {
|
||||
@@ -13,4 +14,4 @@ describe('api-router', () => {
|
||||
expect(router).toBeDefined();
|
||||
expect(typeof router.handle).toBe('function');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user