* #378 add emoji suggestion * #378 use lazy load for nodeEmoji * #378 apply remark styles only for light theme * #378 add dark theme * #378 fix test * #378 use permanent class names * #378 flip if else for readability
30 lines
748 B
TypeScript
30 lines
748 B
TypeScript
import 'jest-extended';
|
|
import 'jest-enzyme';
|
|
import { StaticStore } from '@app/common/static_store';
|
|
import { configure } from 'enzyme';
|
|
import PreactAdapter from 'enzyme-adapter-preact-pure';
|
|
|
|
configure({ adapter: new PreactAdapter() });
|
|
|
|
require('document-register-element/pony')(window);
|
|
|
|
beforeEach(() => {
|
|
StaticStore.config = {
|
|
admin_email: 'admin@remark42.com',
|
|
admins: ['admin'],
|
|
auth_providers: ['dev', 'google'],
|
|
critical_score: -15,
|
|
low_score: -5,
|
|
edit_duration: 300,
|
|
max_comment_size: 3000,
|
|
max_image_size: 5000,
|
|
positive_score: false,
|
|
readonly_age: 100,
|
|
version: 'jest-test',
|
|
simple_view: false,
|
|
anon_vote: false,
|
|
email_notifications: false,
|
|
emoji_enabled: true,
|
|
};
|
|
});
|