Add test for not setting bg in theme
This commit is contained in:
@@ -269,6 +269,12 @@ describe('ColorManager', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('setTheme', () => {
|
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', () => {
|
it('should set a partial set of colors, using the default if not present', () => {
|
||||||
assert.equal(cm.colors.background, '#000000');
|
assert.equal(cm.colors.background, '#000000');
|
||||||
assert.equal(cm.colors.foreground, '#ffffff');
|
assert.equal(cm.colors.foreground, '#ffffff');
|
||||||
|
|||||||
Reference in New Issue
Block a user