Browse Source

Update tests

Steven Silvester 8 years ago
parent
commit
9c371cbdbe
2 changed files with 3 additions and 3 deletions
  1. 1 1
      test/src/codeeditor/widget.spec.ts
  2. 2 2
      test/src/console/history.spec.ts

+ 1 - 1
test/src/codeeditor/widget.spec.ts

@@ -82,7 +82,7 @@ describe('CodeEditorWrapper', () => {
   let widget: LogWidget;
   let editorFactory = (options: CodeEditor.IOptions) => {
     options.uuid = 'foo';
-    return new LogEditor(options, {});
+    return new LogEditor(options);
   };
 
   beforeEach(() => {

+ 2 - 2
test/src/console/history.spec.ts

@@ -199,7 +199,7 @@ describe('console/history', () => {
         expect(history.methods).to.not.contain('onTextChange');
         let model = new CodeEditor.Model();
         let host = document.createElement('div');
-        let editor = new CodeMirrorEditor({ model, host }, {});
+        let editor = new CodeMirrorEditor({ model, host });
         history.editor = editor;
         model.value.text = 'foo';
         expect(history.methods).to.contain('onTextChange');
@@ -214,7 +214,7 @@ describe('console/history', () => {
         expect(history.methods).to.not.contain('onEdgeRequest');
         let host = document.createElement('div');
         let model = new CodeEditor.Model();
-        let editor = new CodeMirrorEditor({ model, host }, {});
+        let editor = new CodeMirrorEditor({ model, host });
         history.editor = editor;
         history.push('foo');
         editor.model.value.changed.connect(() => {