Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Corrected failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
f1ames committed Jan 8, 2019
1 parent b03dce7 commit 6de0253
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/controller/datacontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ describe( 'DataController', () => {
data.init( { nonexistent: '<p>Bar</p>' } );
} ).to.throw(
CKEditorError,
'trying-to-init-data-on-non-existing-root: Attempting to init data on non-existing root.'
'datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.'
);
} );

Expand All @@ -235,7 +235,7 @@ describe( 'DataController', () => {
data.init( { main: 'bar', nonexistent: '<p>Bar</p>' } );
} ).to.throw(
CKEditorError,
'trying-to-init-data-on-non-existing-root: Attempting to init data on non-existing root.'
'datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.'
);

expect( getData( model, { withoutSelection: true } ) ).to.equal( '' );
Expand Down Expand Up @@ -309,7 +309,7 @@ describe( 'DataController', () => {
data.set( { nonexistent: '<p>Bar</p>' } );
} ).to.throw(
CKEditorError,
'trying-to-set-data-on-non-existing-root: Attempting to set data on non-existing root.'
'datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.'
);
} );

Expand All @@ -321,7 +321,7 @@ describe( 'DataController', () => {
data.set( { main: 'bar', nonexistent: '<p>Bar</p>' } );
} ).to.throw(
CKEditorError,
'trying-to-set-data-on-non-existing-root: Attempting to set data on non-existing root.'
'datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.'
);

expect( getData( model, { withoutSelection: true } ) ).to.equal( 'foo' );
Expand Down Expand Up @@ -402,7 +402,7 @@ describe( 'DataController', () => {
data.get( 'nonexistent' );
} ).to.throw(
CKEditorError,
'trying-to-get-data-from-non-existing-root: Attempting to get data from non-existing root.'
'datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.'
);
} );
} );
Expand Down

0 comments on commit 6de0253

Please sign in to comment.