* Add "simple view" mode support It just hide elements from view when SIMPLE_VIEW recived from server * Fix typing and add ts check before push * proper input styling * Changes for frontend dev compose * remove SIMPLE_VIEW from default settings for forntend dev * add private compose to gitignore * Added simpleView mode for replay and edit modes. * `simpleView` changed to required param * FIx border-width in reply form * Fix border-width in editing mode
27 lines
669 B
TypeScript
27 lines
669 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,
|
|
};
|
|
});
|