refactor(tests): remove "can be required" from everywhere
This commit is contained in:
parent
e3a038fcfa
commit
9204f3ee8d
4 changed files with 0 additions and 16 deletions
|
|
@ -1,10 +1,6 @@
|
|||
local cur_dir = vim.fn.expand "%:p:h"
|
||||
|
||||
describe("gopher.iferr", function()
|
||||
it("can be required", function()
|
||||
require "gopher.iferr"
|
||||
end)
|
||||
|
||||
it("should be able to add iferr", function()
|
||||
local temp_file = vim.fn.tempname() .. ".go"
|
||||
local input_file = vim.fn.readfile(cur_dir .. "/spec/fixtures/iferr/input.go")
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
local cur_dir = vim.fn.expand "%:p:h"
|
||||
|
||||
describe("gopher.struct_tags", function()
|
||||
it("can be required", function()
|
||||
require "gopher.struct_tags"
|
||||
end)
|
||||
|
||||
it("can add json tag to struct", function()
|
||||
local tag = require "gopher.struct_tags"
|
||||
local temp_file = vim.fn.tempname() .. ".go"
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
describe("unit.gopher.config", function()
|
||||
it("can be required", function()
|
||||
require "gopher.config"
|
||||
end)
|
||||
|
||||
describe(".setup()", function()
|
||||
local c = require "gopher.config"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
describe("gopher._utils", function()
|
||||
it("can be requried", function()
|
||||
require "gopher._utils"
|
||||
end)
|
||||
|
||||
describe(".empty()", function()
|
||||
local empty = require("gopher._utils").empty
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue