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:
committed by
László Monda
parent
85bc5b94e1
commit
35c0d98cd2
@@ -30,4 +30,11 @@ describe('Test Serializer', () => {
|
||||
expect(buffersContentsAreEqual).toBe(true);
|
||||
|
||||
});
|
||||
|
||||
it('check json serializer', () => {
|
||||
const config1Ts: UserConfiguration = new UserConfiguration().fromJsonObject(userConfig);
|
||||
const jsonObject = config1Ts.toJsonObject();
|
||||
|
||||
expect(jsonObject).toEqual(userConfig);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user