pixiv.moe
Version:
A pinterest-style layout site, shows illusts on [pixiv.net](http://pixiv.net) order by popularity. Written with React.
19 lines (17 loc) • 476 B
text/typescript
import { expect } from 'chai';
import illust from '@/reducers/illust';
import { IIllustAction } from '@/actions/illust';
describe('IllustReducer', () => {
it('should return the initial state', () => {
expect(illust(undefined, {} as IIllustAction)).to.deep.equal({
items: {},
comments: [],
page: 1,
isCommentsEnd: false,
isFetching: true,
isError: false,
isFetchingComments: true,
isCommentsError: false
});
});
});