mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
32 lines
795 B
TypeScript
32 lines
795 B
TypeScript
import { useStyles } from './useStyles';
|
|
|
|
describe('useStyles', () => {
|
|
it('sets z-index as css variables', () => {
|
|
vi.spyOn(global.document.documentElement.style, 'setProperty');
|
|
|
|
const { setAppZIndexes } = useStyles();
|
|
|
|
setAppZIndexes();
|
|
|
|
expect(global.document.documentElement.style.setProperty).toHaveBeenNthCalledWith(
|
|
2,
|
|
'--z-index-app-header',
|
|
'99',
|
|
);
|
|
expect(global.document.documentElement.style.setProperty).toHaveBeenCalledWith(
|
|
'--z-index-canvas-add-button',
|
|
'101',
|
|
);
|
|
|
|
expect(global.document.documentElement.style.setProperty).toHaveBeenCalledWith(
|
|
'--z-index-workflow-preview-ndv',
|
|
'9999999',
|
|
);
|
|
|
|
expect(global.document.documentElement.style.setProperty).toHaveBeenLastCalledWith(
|
|
'--z-index-nps-survey-modal',
|
|
'3001',
|
|
);
|
|
});
|
|
});
|