Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { describe, test, expect } from 'vitest';
import TestContext from '../TestContext';
export default function jestService() {
describe('service', () => {
const [kernel] = TestContext.getEntity();
describe('CoreKernelModule service management', () => {
test('stopService - non-existent service returns null', async () => {
const mod = kernel.getChildModule('testModule') as any;
const result = await mod.stopService('__nonexistent__');
expect(result).toBeNull();
});
test('startService - non-existent service returns null', async () => {
const mod = kernel.getChildModule('testModule') as any;
const result = await mod.startService('__nonexistent__');
expect(result).toBeNull();
});
});
});
}
|