Commit 0f26fef 1 parent 40b5489 commit 0f26fef Copy full SHA for 0f26fef
File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ local assert = require (' luassert' )
2
+ local t_util = require (' github-theme._test.util' )
3
+ local uniqgrp = t_util .unique_hlgroup
4
+
5
+ if vim .fn .has (' nvim-0.9.0' ) == 0 or vim .fn .has (' nvim-0.9.0' ) == false then
6
+ return
7
+ end
8
+
9
+ describe (' compiler' , function ()
10
+ it (' should consider previously-set overrides (1)' , function ()
11
+ local same_opts = {}
12
+ require (' github-theme' ).setup (same_opts )
13
+ require (' github-theme.override' ).groups = { all = { Normal = { link = uniqgrp } } }
14
+ require (' github-theme' ).setup (same_opts )
15
+ vim .cmd .colorscheme ({ args = { ' github_dark_dimmed' } })
16
+ assert .same ({ link = uniqgrp }, t_util .get_hl (' Normal' , true ))
17
+ end )
18
+
19
+ it (' should consider previously-set overrides (2)' , function ()
20
+ require (' github-theme' ).setup ({})
21
+ require (' github-theme.override' ).groups = { all = { Normal = { link = uniqgrp } } }
22
+ vim .cmd .colorscheme ({ args = { ' github_dark_dimmed' } })
23
+ assert .same ({ link = uniqgrp }, t_util .get_hl (' Normal' , true ))
24
+ end )
25
+ end )
You can’t perform that action at this time.
0 commit comments