mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-13 08:49:24 +00:00
e05c262468
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.
12 lines
402 B
Lua
12 lines
402 B
Lua
local capture = require "test_helpers".capture_program
|
|
|
|
describe("The fg program", function()
|
|
it("opens the shell in the foreground", function()
|
|
local openTab = stub(shell, "openTab", function() return 12 end)
|
|
local switchTab = stub(shell, "switchTab")
|
|
capture(stub, "fg")
|
|
expect(openTab):called_with("shell")
|
|
expect(switchTab):called_with(12)
|
|
end)
|
|
end)
|