Files
2022-10-18 00:26:09 +02:00

26 lines
599 B
TypeScript

describe('usage on server', () => {
test('import', async () => {
await expect(
(async () => {
const module = await import('~/index');
return module;
})()
).resolves.toBeTruthy();
});
test('static functions', async () => {
await expect(
(async () => {
const { OverlayScrollbars } = await import('~/index');
expect(() => {
OverlayScrollbars.valid(false);
}).not.toThrow();
expect(() => {
OverlayScrollbars.plugin({});
}).not.toThrow();
})()
).resolves.not.toThrow();
});
});