Files
NeoTachyon/fe-app-forkop/src/forkop/helpers/tests/restoredActionLoading.test.ts
T
2026-07-11 18:23:20 +03:00

12 lines
474 B
TypeScript

import { describe, expect, it } from 'vitest';
import { shouldShowLoadingForRestoredAction } from '../restoredActionLoading';
describe('restored action loading', () => {
it('shows loading only for actions that are still running', () => {
expect(shouldShowLoadingForRestoredAction({ running: true })).toBe(true);
expect(shouldShowLoadingForRestoredAction({ running: false })).toBe(false);
expect(shouldShowLoadingForRestoredAction({})).toBe(false);
});
});