test(serializer): Add KeystrokeAction tests (#430)

* test: add basis of the unit testing of the uhk-common package

* test(serializer): Add KeystrokeAction tests

* fix(serializer): Fix KeystrokeAction scancode mapping

* test(serializer): Add NoneAction test cases

* test(serializer): Add MouseAction test cases

* test(serializer): Add PlayMacroAction test cases

* test(serializer): Add SwitchKeymapAction test cases

* test(serializer): Add UserConfiguration test cases

fix KeyAction mapping

* test(serializer): Add SwitchLayerAction test cases
This commit is contained in:
Róbert Kiss
2017-10-06 22:24:33 +02:00
committed by László Monda
parent 85bc5b94e1
commit 35c0d98cd2
19 changed files with 4148 additions and 17 deletions

View File

@@ -57,6 +57,7 @@ export class Module {
if (keyAction && (macros || !(keyAction instanceof PlayMacroAction || keyAction instanceof SwitchKeymapAction))) {
return keyAction.toJsonObject(macros);
}
return null;
})
};
}