mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +01:00
3590be1429
* match_query: unit test and rewrite for TypeScript * match_query: use new type for parse errors * match_query: avoid exceptional control flow in date parsing
19 lines
471 B
TypeScript
19 lines
471 B
TypeScript
import '@testing-library/jest-dom';
|
|
import { matchNone } from '../js/query/boolean';
|
|
|
|
window.booru = {
|
|
csrfToken: 'mockCsrfToken',
|
|
hiddenTag: '/mock-tagblocked.svg',
|
|
hiddenTagList: [],
|
|
ignoredTagList: [],
|
|
imagesWithDownvotingDisabled: [],
|
|
spoilerType: 'off',
|
|
spoileredTagList: [],
|
|
userCanEditFilter: false,
|
|
userIsSignedIn: false,
|
|
watchedTagList: [],
|
|
hiddenFilter: matchNone(),
|
|
spoileredFilter: matchNone(),
|
|
interactions: [],
|
|
tagsVersion: 5
|
|
};
|