28 lines
619 B
TypeScript
28 lines
619 B
TypeScript
import { describe, it, expect, jest, beforeEach } from '@jest/globals';
|
|
|
|
describe('usePageStorage hook', () => {
|
|
beforeEach(() => {
|
|
global.fetch = jest.fn();
|
|
});
|
|
|
|
it('should save page config', async () => {
|
|
// TODO: Implement test
|
|
expect(true).toBe(true);
|
|
});
|
|
|
|
it('should load page config', async () => {
|
|
// TODO: Implement test
|
|
expect(true).toBe(true);
|
|
});
|
|
|
|
it('should handle save errors', async () => {
|
|
// TODO: Implement test
|
|
expect(true).toBe(true);
|
|
});
|
|
|
|
it('should handle load errors', async () => {
|
|
// TODO: Implement test
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|
|
|