|
|
|
@ -20,14 +20,14 @@ describe("should get nodes ", function()
|
|
|
|
|
|
|
|
|
|
local bufn = vim.fn.bufnr("")
|
|
|
|
|
it("should get struct playlist and generate comments", function()
|
|
|
|
|
vim.fn.setpos(".", {bufn, 20, 14, 0})
|
|
|
|
|
vim.fn.setpos(".", { bufn, 20, 14, 0 })
|
|
|
|
|
local query = require("go.comment").gen(20, 14)
|
|
|
|
|
eq("// createPlaylist function ", query)
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
it("should get struct playlist and generate comments", function()
|
|
|
|
|
vim.fn.setpos(".", {bufn, 14, 4, 0})
|
|
|
|
|
vim.fn.setpos(".", { bufn, 14, 4, 0 })
|
|
|
|
|
local query = require("go.comment").gen(14, 4)
|
|
|
|
|
eq("// playlist struct ", query)
|
|
|
|
|
eq("// playlist type ", query)
|
|
|
|
|
end)
|
|
|
|
|
end)
|
|
|
|
|