soapbox/src/reducers/trends.test.ts

13 wiersze
285 B
TypeScript

import { describe, expect, it } from 'vitest';
import reducer from './trends.ts';
describe('trends reducer', () => {
it('should return the initial state', () => {
expect(reducer(undefined, {} as any).toJS()).toEqual({
items: [],
isLoading: false,
});
});
});