@@ -43,10 +43,12 @@ describe("Override config", function()
4343 end )
4444
4545 it (" should change default highlights" , function ()
46- local hl = vim .api .nvim_get_hl (0 , { name = " Normal" })
46+ vim .schedule (function ()
47+ local hl = vim .api .nvim_get_hl (0 , { name = " Normal" })
4748
48- assert .equal (expected .colors .lmao , (" #%06x" ):format (hl .fg ))
49- assert .is_true (hl .italic )
49+ assert .equal (expected .colors .lmao , (" #%06x" ):format (hl .fg ))
50+ assert .is_true (hl .italic )
51+ end )
5052 end )
5153
5254 it (" should disable all italics" , function ()
@@ -83,10 +85,12 @@ describe("Override wrong config", function()
8385 end )
8486
8587 it (" should fallback to default highlights" , function ()
86- local default = require " one_monokai.highlights.groups"
87- local hl = vim .api .nvim_get_hl (0 , { name = " Normal" })
88+ vim .schedule (function ()
89+ local default = require " one_monokai.highlights.groups"
90+ local hl = vim .api .nvim_get_hl (0 , { name = " Normal" })
8891
89- assert .equal (default .Normal .fg , (" #%06x" ):format (hl .fg ))
90- assert .is_nil (hl .italic )
92+ assert .equal (default .Normal .fg , (" #%06x" ):format (hl .fg ))
93+ assert .is_nil (hl .italic )
94+ end )
9195 end )
9296end )
0 commit comments