Add test for not setting bg in theme

This commit is contained in:
Daniel Imms
2017-10-25 21:28:19 -07:00
parent 2fc723b3ac
commit a27a4e627e
+6
View File
@@ -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');