string.is_empty
-- Using Packer
use "interludedesign/luautils"
require("luautils.string")
string.is_empty("")
=> true
This plugin uses plenary.nvim so you'll need that installed via your vim plugin manager. Specs are in lua/spec
. It's easiest to run specs from the relevant file with a keymap:
-- Run Plenary tests
vim.api.nvim_set_keymap("n", "<leader><leader>t", "<Plug>PlenaryTestFile", {noremap = true})
See this testing guide for more details.