Przeglądaj źródła

Updated the way anonymous controller collection is obtained.

Aleksander Nowodzinski 9 lat temu
rodzic
commit
901acb00c8
1 zmienionych plików z 4 dodań i 5 usunięć
  1. 4 5
      packages/ckeditor5-link/tests/ui/linkform.js

+ 4 - 5
packages/ckeditor5-link/tests/ui/linkform.js

@@ -43,7 +43,7 @@ describe( 'LinkForm', () => {
 			} );
 
 			it( 'belongs to anonymous collection', () => {
-				expect( linkForm.collections.get( '_anonymous' ).find( ( item ) => {
+				expect( linkForm.collections.get( '$anonymous' ).find( ( item ) => {
 					return item === linkForm.urlInput;
 				} ) ).to.be.not.undefined;
 			} );
@@ -52,7 +52,6 @@ describe( 'LinkForm', () => {
 				expect( linkForm.urlInput.model.value ).to.equal( 'foo' );
 
 				model.url = 'bar';
-
 				expect( linkForm.urlInput.model.value ).to.equal( 'bar' );
 			} );
 		} );
@@ -63,7 +62,7 @@ describe( 'LinkForm', () => {
 			} );
 
 			it( 'belongs to anonymous collection', () => {
-				expect( linkForm.collections.get( '_anonymous' ).find( ( item ) => {
+				expect( linkForm.collections.get( '$anonymous' ).find( ( item ) => {
 					return item === linkForm.saveButton;
 				} ) ).to.be.not.undefined;
 			} );
@@ -75,7 +74,7 @@ describe( 'LinkForm', () => {
 			} );
 
 			it( 'belongs to anonymous collection', () => {
-				expect( linkForm.collections.get( '_anonymous' ).find( ( item ) => {
+				expect( linkForm.collections.get( '$anonymous' ).find( ( item ) => {
 					return item === linkForm.cancelButton;
 				} ) ).to.be.not.undefined;
 			} );
@@ -95,7 +94,7 @@ describe( 'LinkForm', () => {
 			} );
 
 			it( 'belongs to anonymous collection', () => {
-				expect( linkForm.collections.get( '_anonymous' ).find( ( item ) => {
+				expect( linkForm.collections.get( '$anonymous' ).find( ( item ) => {
 					return item === linkForm.unlinkButton;
 				} ) ).to.be.not.undefined;
 			} );