Skip to content

Commit 82d3c2e

Browse files
authored
test: add pending statements for missing device aliases in tests
1 parent 65ddb94 commit 82d3c2e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/devices.test.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ describe("evdev.devices", function()
115115
it("finds a device by by-id alias when present", function()
116116
local dev_with_alias = find_by_id(devs)
117117
if not dev_with_alias then
118+
---@diagnostic disable-next-line: missing-parameter
118119
pending("no discovered device with a by-id alias")
119120
end
120121

@@ -126,6 +127,7 @@ describe("evdev.devices", function()
126127
it("finds a device by by-path alias when present", function()
127128
local dev_with_alias = find_by_path(devs)
128129
if not dev_with_alias then
130+
---@diagnostic disable-next-line: missing-parameter
129131
pending("no discovered device with a by-path alias")
130132
end
131133

@@ -168,6 +170,7 @@ describe("evdev.devices", function()
168170
it("finds a device by by-id alias when present", function()
169171
local dev_with_alias = find_by_id(devs)
170172
if not dev_with_alias then
173+
---@diagnostic disable-next-line: missing-parameter
171174
pending("no discovered device with a by-id alias")
172175
end
173176

@@ -180,6 +183,7 @@ describe("evdev.devices", function()
180183
it("finds a device by by-path alias when present", function()
181184
local dev_with_alias = find_by_path(devs)
182185
if not dev_with_alias then
186+
---@diagnostic disable-next-line: missing-parameter
183187
pending("no discovered device with a by-path alias")
184188
end
185189

0 commit comments

Comments
 (0)