|
|
@@ -33,7 +33,7 @@ describe( 'ComponentFactory', () => {
|
|
|
factory.add( 'bar', () => {} );
|
|
|
factory.add( 'Baz', () => {} );
|
|
|
|
|
|
- expect( Array.from( factory.names() ) ).to.have.members( [ 'foo', 'bar', 'baz' ] );
|
|
|
+ expect( Array.from( factory.names() ) ).to.have.members( [ 'foo', 'bar', 'Baz' ] );
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
@@ -53,6 +53,12 @@ describe( 'ComponentFactory', () => {
|
|
|
factory.add( 'foo', () => {} );
|
|
|
} ).to.throw( CKEditorError, /^componentfactory-item-exists/ );
|
|
|
} );
|
|
|
+
|
|
|
+ it( 'does not normalize component names', () => {
|
|
|
+ factory.add( 'FoO', () => {} );
|
|
|
+
|
|
|
+ expect( Array.from( factory.names() ) ).to.have.members( [ 'FoO' ] );
|
|
|
+ } );
|
|
|
} );
|
|
|
|
|
|
describe( 'create()', () => {
|