|
@@ -66,7 +66,7 @@ describe( 'TreeWalker', () => {
|
|
|
|
|
|
|
|
it( 'should throw if walking direction is unknown', () => {
|
|
it( 'should throw if walking direction is unknown', () => {
|
|
|
expect( () => {
|
|
expect( () => {
|
|
|
- new TreeWalker( { startPosition: rootBeginning, direction: 'UNKNOWN' } );
|
|
|
|
|
|
|
+ new TreeWalker( { startPosition: rootBeginning, direction: 'unknown' } );
|
|
|
} ).to.throw( CKEditorError, /^tree-walker-unknown-direction/ );
|
|
} ).to.throw( CKEditorError, /^tree-walker-unknown-direction/ );
|
|
|
} );
|
|
} );
|
|
|
} );
|
|
} );
|