mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-27 03:54:06 +03:00
26 lines
599 B
TypeScript
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();
|
|
});
|
|
});
|