Ver Fonte

Finish tests

Steven Silvester há 8 anos atrás
pai
commit
47c2159bbb
1 ficheiros alterados com 6 adições e 1 exclusões
  1. 6 1
      test/src/terminal/terminal.spec.ts

+ 6 - 1
test/src/terminal/terminal.spec.ts

@@ -237,7 +237,12 @@ describe('terminal/index', () => {
     describe('#onUpdateRequest()', () => {
 
       it('should set the style of the terminal', () => {
-
+        Widget.attach(widget, document.body);
+        sendMessage(widget, WidgetMessage.UpdateRequest);
+        expect(widget.methods).to.contain('onUpdateRequest');
+        let style = window.getComputedStyle(widget.node);
+        expect(style.backgroundColor).to.be('rgb(0, 0, 0)');
+        expect(style.color).to.be('rgb(255, 255, 255)');
       });
 
     });