mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add test for not setting bg in theme
This commit is contained in:
@@ -269,6 +269,12 @@ describe('ColorManager', () => {
|
||||
});
|
||||
|
||||
describe('setTheme', () => {
|
||||
it('should not throw when not setting all colors', () => {
|
||||
assert.doesNotThrow(() => {
|
||||
cm.setTheme({});
|
||||
});
|
||||
});
|
||||
|
||||
it('should set a partial set of colors, using the default if not present', () => {
|
||||
assert.equal(cm.colors.background, '#000000');
|
||||
assert.equal(cm.colors.foreground, '#ffffff');
|
||||
|
||||
Reference in New Issue
Block a user