From dffcd00ef44af412f285d9493f618e2cfdf7ffcc Mon Sep 17 00:00:00 2001 From: zztrieuzz Date: Tue, 26 Oct 2021 12:57:21 +0700 Subject: [PATCH] spec: document field `only` --- tests/nvim-autopairs_spec.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/nvim-autopairs_spec.lua b/tests/nvim-autopairs_spec.lua index cc57f2a..7d455e5 100644 --- a/tests/nvim-autopairs_spec.lua +++ b/tests/nvim-autopairs_spec.lua @@ -23,8 +23,10 @@ function helpers.insert(text, is_replace) helpers.feed('i' .. text, 'x',is_replace) end +-- use only = true to test 1 case local data = { { + -- only = true, name = "add normal bracket" , key = [[{]], before = [[x| ]], @@ -78,7 +80,6 @@ local data = { after = [[aa'| aa ]] }, { - -- only = true, name = "don't add single quote with alphabet char" , key = [[']], before = [[a|x ]],