mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Reset widget decorators after each test
This commit is contained in:
@@ -32,6 +32,10 @@ export function applyDecorators(widget, type, attrs, state) {
|
||||
return [];
|
||||
}
|
||||
|
||||
export function resetDecorators() {
|
||||
Object.keys(_decorators).forEach(key => delete _decorators[key]);
|
||||
}
|
||||
|
||||
const _customSettings = {};
|
||||
export function changeSetting(widgetName, settingName, newValue) {
|
||||
_customSettings[widgetName] = _customSettings[widgetName] || {};
|
||||
|
||||
Reference in New Issue
Block a user