mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix ThemeService.ctor test
This commit is contained in:
@@ -35,7 +35,12 @@ describe('ThemeService', () => {
|
||||
describe('constructor', () => {
|
||||
it('should fill all colors with values', () => {
|
||||
for (const key of Object.keys(themeService.colors)) {
|
||||
if (key !== 'ansi' && key !== 'contrastCache' && key !== 'selectionForeground') {
|
||||
if (![
|
||||
'ansi',
|
||||
'contrastCache',
|
||||
'halfContrastCache',
|
||||
'selectionForeground'
|
||||
].includes(key)) {
|
||||
// A #rrggbb or rgba(...)
|
||||
assert.ok((themeService.colors as any)[key].css.length >= 7);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user