File tree Expand file tree Collapse file tree 2 files changed +0
-31
lines changed
integration-karma/test/api/getComponentDef
integration-not-karma/configs Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -17,36 +17,6 @@ function testInvalidComponentConstructor(name, ctor) {
1717 } ) ;
1818}
1919
20- beforeAll ( function ( ) {
21- const getNormalizedFunctionAsString = ( fn ) => fn . toString ( ) . replace ( / ( \s | \n ) / g, '' ) ;
22-
23- jasmine . addMatchers ( {
24- toEqualWireSettings : function ( ) {
25- return {
26- compare : function ( actual , expected ) {
27- Object . keys ( actual ) . forEach ( ( currentKey ) => {
28- const normalizedActual = Object . assign ( { } , actual [ currentKey ] , {
29- config : getNormalizedFunctionAsString ( actual [ currentKey ] . config ) ,
30- } ) ;
31-
32- const normalizedExpected = Object . assign ( { } , expected [ currentKey ] , {
33- config : getNormalizedFunctionAsString (
34- expected [ currentKey ] . config || function ( ) { }
35- ) ,
36- } ) ;
37-
38- expect ( normalizedActual ) . toEqual ( normalizedExpected ) ;
39- } ) ;
40-
41- return {
42- pass : true ,
43- } ;
44- } ,
45- } ;
46- } ,
47- } ) ;
48- } ) ;
49-
5020testInvalidComponentConstructor ( 'null' , null ) ;
5121testInvalidComponentConstructor ( 'undefined' , undefined ) ;
5222testInvalidComponentConstructor ( 'String' , 'component' ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ export default {
99 'test/**/*.spec.js' ,
1010 '!test/accessibility/synthetic-cross-root-aria/index.spec.js' ,
1111 '!test/api/freezeTemplate/index.spec.js' ,
12- '!test/api/getComponentDef/index.spec.js' ,
1312 '!test/component/LightningElement.addEventListener/index.spec.js' ,
1413 '!test/component/native-vs-synthetic-lifecycle/index.spec.js' ,
1514 '!test/custom-elements-registry/index.spec.js' ,
You can’t perform that action at this time.
0 commit comments