Reset widget decorators after each test

This commit is contained in:
Gerhard Schlager
2018-03-12 12:46:41 +01:00
parent d75eb23231
commit 243ee565dc
2 changed files with 6 additions and 0 deletions

View File

@@ -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] || {};