summaryrefslogtreecommitdiff
path: root/app/tests/none/normal
diff options
context:
space:
mode:
authorCody McGinnis <brainwart@gmail.com>2020-08-28 16:21:31 -0400
committerCody McGinnis <brainwart@gmail.com>2020-08-28 16:21:31 -0400
commit3d325ccb84ecd3b25dd86d829c448dfd9b41a08f (patch)
tree22a1829e14ba36e79695cc6e8ff83ee559879ec3 /app/tests/none/normal
parentabf8b5abfae2c240e71db11f13183369a14333d7 (diff)
feat(test): add tests for none behavior
Diffstat (limited to 'app/tests/none/normal')
-rw-r--r--app/tests/none/normal/events.patterns1
-rw-r--r--app/tests/none/normal/keycode_events.snapshot0
-rw-r--r--app/tests/none/normal/native_posix.keymap8
3 files changed, 9 insertions, 0 deletions
diff --git a/app/tests/none/normal/events.patterns b/app/tests/none/normal/events.patterns
new file mode 100644
index 0000000..3c9d3f8
--- /dev/null
+++ b/app/tests/none/normal/events.patterns
@@ -0,0 +1 @@
+s/.*hid_listener_keycode/kp/p \ No newline at end of file
diff --git a/app/tests/none/normal/keycode_events.snapshot b/app/tests/none/normal/keycode_events.snapshot
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/app/tests/none/normal/keycode_events.snapshot
diff --git a/app/tests/none/normal/native_posix.keymap b/app/tests/none/normal/native_posix.keymap
new file mode 100644
index 0000000..94d7539
--- /dev/null
+++ b/app/tests/none/normal/native_posix.keymap
@@ -0,0 +1,8 @@
+#include <dt-bindings/zmk/keys.h>
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/kscan-mock.h>
+#include "../behavior_keymap.dtsi"
+
+&kscan {
+ events = <ZMK_MOCK_PRESS(0,0,10) ZMK_MOCK_RELEASE(0,0,10)>;
+}; \ No newline at end of file