Skip to content

Commit

Permalink
test: add tests for incomptabile os
Browse files Browse the repository at this point in the history
  • Loading branch information
HakonHarnes committed Mar 1, 2024
1 parent 3a41089 commit eca1633
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/clipboard_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ describe("clipboard", function()
end
end)

-- incompatible os
describe("Incompatible", function()
before_each(function()
os.getenv = function()
return false
end
util.has = function()
return false
end
util.executable = function()
return false
end
end)

it("return nil if clipboard command cant be found", function()
assert.equals(nil, clipboard.get_clip_cmd())
end)
end)

-- X11
describe("x11", function()
before_each(function()
Expand Down

0 comments on commit eca1633

Please sign in to comment.