mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-13 16:56:49 +00:00
![JakobDev](/assets/img/avatar_default.png)
I'm not entirely sure how useful all of these will be yet - still trying to work out what/when to test things, but hopefully this'll be a useful datapoint.
10 lines
294 B
Lua
10 lines
294 B
Lua
local capture = require "test_helpers".capture_program
|
|
|
|
describe("The exit program", function()
|
|
it("exits the shell", function()
|
|
local exit = stub(shell, "exit")
|
|
expect(capture(stub, "exit")):matches { ok = true, combined = "" }
|
|
expect(exit):called(1)
|
|
end)
|
|
end)
|