refactor(tests): remove "can be required" from everywhere

This commit is contained in:
Smirnov Oleksandr 2023-07-05 13:54:58 +03:00
parent e3a038fcfa
commit 9204f3ee8d
4 changed files with 0 additions and 16 deletions

View file

@ -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")

View file

@ -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"

View file

@ -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"

View file

@ -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