Fix timelines test

This commit is contained in:
Alex Gleason 2023-06-20 21:17:57 -05:00
parent 7e83039999
commit 256d7825ee
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -13,13 +13,13 @@ describe('shouldFilter', () => {
it('reblog: returns true when `shows.reblog == false`', () => { it('reblog: returns true when `shows.reblog == false`', () => {
const columnSettings = fromJS({ shows: { reblog: false } }); const columnSettings = fromJS({ shows: { reblog: false } });
const status = buildStatus({ reblog: {} }); const status = buildStatus({ reblog: buildStatus() as any });
expect(shouldFilter(status, columnSettings)).toBe(true); expect(shouldFilter(status, columnSettings)).toBe(true);
}); });
it('reblog: returns false when `shows.reblog == true`', () => { it('reblog: returns false when `shows.reblog == true`', () => {
const columnSettings = fromJS({ shows: { reblog: true } }); const columnSettings = fromJS({ shows: { reblog: true } });
const status = buildStatus({ reblog: {} }); const status = buildStatus({ reblog: buildStatus() as any });
expect(shouldFilter(status, columnSettings)).toBe(false); expect(shouldFilter(status, columnSettings)).toBe(false);
}); });