mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2026-04-11 00:02:15 +08:00
Tests update
This commit is contained in:
@@ -478,3 +478,9 @@ it('Keyboard removeAt will remove regular strings', () => {
|
|||||||
output = keyboard.utilities.removeAt("testie", 6, true);
|
output = keyboard.utilities.removeAt("testie", 6, true);
|
||||||
expect(keyboard.caretPosition).toBe(5);
|
expect(keyboard.caretPosition).toBe(5);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Keyboard will work with custom (and weird) class', () => {
|
||||||
|
testUtil.setDOM("my--weird--class");
|
||||||
|
let keyboard = new Keyboard(".my--weird--class");
|
||||||
|
expect(keyboard.keyboardDOMClass).toBe("my--weird--class");
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user