all repos

gopher.nvim @ v0.1.5

Minimalistic plugin for Go development

gopher.nvim/spec/units/utils_spec.lua(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)