@@ -44,6 +44,23 @@ describe("plenary.popup", function()
44
44
eq (true , vim .api .nvim_win_is_valid (border_id ))
45
45
end )
46
46
47
+ it (" can apply a border highlight" , function ()
48
+ local _ , opts = popup .create (" hello there" , {
49
+ border = true ,
50
+ borderhighlight = " PopupColor2" ,
51
+ })
52
+
53
+ local border_win_id = opts .border .win_id
54
+ eq (" Normal:PopupColor2" , vim .api .nvim_win_get_option (border_win_id , " winhl" ))
55
+ end )
56
+
57
+ it (" can ignore border highlight with no border" , function ()
58
+ local _ = popup .create (" hello there" , {
59
+ border = false ,
60
+ borderhighlight = " PopupColor3" ,
61
+ })
62
+ end )
63
+
47
64
it (" can do basic padding" , function ()
48
65
local win_id = popup .create (" 12345" , {
49
66
line = 1 ,
@@ -74,7 +91,7 @@ describe("plenary.popup", function()
74
91
describe (" borderchars" , function ()
75
92
local test_border = function (name , borderchars , expected )
76
93
it (name , function ()
77
- local win_id , config = popup .create (" all the plus signs" , {
94
+ local _ , config = popup .create (" all the plus signs" , {
78
95
line = 8 ,
79
96
col = 55 ,
80
97
padding = { 0 , 3 , 0 , 3 },
0 commit comments