Create the NAP-THEME mock.
Initial theme and shared mock options.
The theme mock service.
const theme = createMockThemeService({ initialTheme: 'light' });theme.handleMessage('w1', { type: 'theme.get', id: 't1' }, send);// → { type: 'theme.get.result', id: 't1', theme: MOCK_THEMES.light } Copy
const theme = createMockThemeService({ initialTheme: 'light' });theme.handleMessage('w1', { type: 'theme.get', id: 't1' }, send);// → { type: 'theme.get.result', id: 't1', theme: MOCK_THEMES.light }
Create the NAP-THEME mock.