mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 03:41:54 +08:00
15 lines
536 B
TypeScript
15 lines
536 B
TypeScript
import * as EventsPackageExport from './index';
|
|
import EventsDefaultExport, { CHANNEL_CREATED } from './index';
|
|
|
|
describe('Core Events', () => {
|
|
it('Should export the module as a namespace', () => {
|
|
expect(EventsPackageExport.CHANNEL_CREATED).toBe('channelCreated');
|
|
});
|
|
it('Should export all values in the default export', () => {
|
|
expect(EventsDefaultExport.CHANNEL_CREATED).toBe('channelCreated');
|
|
});
|
|
it('Should export values as named exports', () => {
|
|
expect(CHANNEL_CREATED).toBe('channelCreated');
|
|
});
|
|
});
|