soapbox/src/reducers/admin.test.ts

13 lines
381 B
TypeScript
Raw Normal View History

import { Record as ImmutableRecord } from 'immutable';
import { describe, expect, it } from 'vitest';
2024-11-10 03:18:55 +00:00
import reducer from './admin.ts';
describe('admin reducer', () => {
it('should return the initial state', () => {
const result = reducer(undefined, {} as any);
expect(ImmutableRecord.isRecord(result)).toBe(true);
expect(result.needsReboot).toBe(false);
});
});