Explorar o código

Use shorthand function comparison

Co-Authored-By: Piotrek Koszuliński <pkoszulinski@gmail.com>
Sebastian Helzle %!s(int64=6) %!d(string=hai) anos
pai
achega
d2b3fd9819
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-utils/tests/dom/createelement.js

+ 1 - 1
packages/ckeditor5-utils/tests/dom/createelement.js

@@ -29,7 +29,7 @@ describe( 'createElement', () => {
 
 
 		expect( svg.tagName.toLowerCase() ).to.equal( 'svg' );
 		expect( svg.tagName.toLowerCase() ).to.equal( 'svg' );
 		expect( svg.getAttribute( 'xmlns' ) ).to.equal( namespace );
 		expect( svg.getAttribute( 'xmlns' ) ).to.equal( namespace );
-		expect( svg.createSVGRect instanceof Function ).to.equal( true );
+		expect( svg.createSVGRect ).to.be.a( 'function' );
 	} );
 	} );
 
 
 	it( 'should create element with child text node', () => {
 	it( 'should create element with child text node', () => {