Browse Source

update tests

Steven Silvester 8 years ago
parent
commit
576236d184
2 changed files with 4 additions and 4 deletions
  1. 3 3
      test/src/codemirror/editor.spec.ts
  2. 1 1
      test/src/codemirror/factory.spec.ts

+ 3 - 3
test/src/codemirror/editor.spec.ts

@@ -150,7 +150,7 @@ describe('CodeMirrorEditor', () => {
     });
 
     it('should get whether horizontally scrolling should be used', () => {
-      expect(editor.getOption('wordWrap')).to.be(true);
+      expect(editor.getOption('lineWrap')).to.be(true);
     });
 
     it('should get whether the editor is readonly', () => {
@@ -167,8 +167,8 @@ describe('CodeMirrorEditor', () => {
     });
 
     it('should set whether horizontally scrolling should be used', () => {
-      editor.setOption('wordWrap', false);
-      expect(editor.getOption('wordWrap')).to.be(false);
+      editor.setOption('lineWrap', false);
+      expect(editor.getOption('lineWrap')).to.be(false);
     });
 
     it('should set whether the editor is readonly', () => {

+ 1 - 1
test/src/codemirror/factory.spec.ts

@@ -24,7 +24,7 @@ describe('CodeMirrorEditorFactory', () => {
 
   const options: Partial<CodeMirrorEditor.IConfig> = {
     lineNumbers: false,
-    wordWrap: true,
+    lineWrap: true,
     extraKeys: {
       'Ctrl-Tab': 'indentAuto',
     }