test!: delete old tests that are basically useless
This commit is contained in:
parent
42a880ab95
commit
0eba23e1a3
2 changed files with 0 additions and 44 deletions
|
|
@ -1,29 +0,0 @@
|
||||||
describe("gopher.config", function()
|
|
||||||
it(".setup() should provide default when .setup() is not called", function()
|
|
||||||
local c = require "gopher.config"
|
|
||||||
|
|
||||||
assert.are.same(c.commands.go, "go")
|
|
||||||
assert.are.same(c.commands.gomodifytags, "gomodifytags")
|
|
||||||
assert.are.same(c.commands.gotests, "gotests")
|
|
||||||
assert.are.same(c.commands.impl, "impl")
|
|
||||||
assert.are.same(c.commands.iferr, "iferr")
|
|
||||||
assert.are.same(c.commands.dlv, "dlv")
|
|
||||||
end)
|
|
||||||
|
|
||||||
it(".setup() should change options on users config", function()
|
|
||||||
local c = require "gopher.config"
|
|
||||||
c.setup {
|
|
||||||
commands = {
|
|
||||||
go = "go1.420",
|
|
||||||
gomodifytags = "iDontUseRustBtw",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
assert.are.same(c.commands.go, "go1.420")
|
|
||||||
assert.are.same(c.commands.gomodifytags, "iDontUseRustBtw")
|
|
||||||
assert.are.same(c.commands.gotests, "gotests")
|
|
||||||
assert.are.same(c.commands.impl, "impl")
|
|
||||||
assert.are.same(c.commands.iferr, "iferr")
|
|
||||||
assert.are.same(c.commands.dlv, "dlv")
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
describe("gopher._utils", function()
|
|
||||||
local u = require "gopher._utils"
|
|
||||||
|
|
||||||
describe(".sreq()", function()
|
|
||||||
it("can require existing module", function()
|
|
||||||
assert.are.same(require "gopher", u.sreq "gopher")
|
|
||||||
end)
|
|
||||||
|
|
||||||
it("cannot require non-existing module", function()
|
|
||||||
assert.has.errors(function()
|
|
||||||
u.sreq "iDontExistBtw"
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue