@@ -7,14 +7,14 @@ describe('Plugin Charts', () => {
77 await import ( './index' ) ;
88 } ) ;
99
10- describe ( 'chart- bar component' , ( ) => {
10+ describe ( 'bar-chart component' , ( ) => {
1111 it ( 'should be registered in ComponentRegistry' , ( ) => {
12- const chartBarRenderer = ComponentRegistry . get ( 'chart- bar' ) ;
12+ const chartBarRenderer = ComponentRegistry . get ( 'bar-chart ' ) ;
1313 expect ( chartBarRenderer ) . toBeDefined ( ) ;
1414 } ) ;
1515
1616 it ( 'should have proper metadata' , ( ) => {
17- const config = ComponentRegistry . getConfig ( 'chart- bar' ) ;
17+ const config = ComponentRegistry . getConfig ( 'bar-chart ' ) ;
1818 expect ( config ) . toBeDefined ( ) ;
1919 expect ( config ?. label ) . toBe ( 'Bar Chart' ) ;
2020 expect ( config ?. category ) . toBe ( 'plugin' ) ;
@@ -23,7 +23,7 @@ describe('Plugin Charts', () => {
2323 } ) ;
2424
2525 it ( 'should have expected inputs' , ( ) => {
26- const config = ComponentRegistry . getConfig ( 'chart- bar' ) ;
26+ const config = ComponentRegistry . getConfig ( 'bar-chart ' ) ;
2727 const inputNames = config ?. inputs ?. map ( ( input : any ) => input . name ) || [ ] ;
2828
2929 expect ( inputNames ) . toContain ( 'data' ) ;
@@ -34,7 +34,7 @@ describe('Plugin Charts', () => {
3434 } ) ;
3535
3636 it ( 'should have data as required input' , ( ) => {
37- const config = ComponentRegistry . getConfig ( 'chart- bar' ) ;
37+ const config = ComponentRegistry . getConfig ( 'bar-chart ' ) ;
3838 const dataInput = config ?. inputs ?. find ( ( input : any ) => input . name === 'data' ) ;
3939
4040 expect ( dataInput ) . toBeDefined ( ) ;
@@ -43,7 +43,7 @@ describe('Plugin Charts', () => {
4343 } ) ;
4444
4545 it ( 'should have sensible default props' , ( ) => {
46- const config = ComponentRegistry . getConfig ( 'chart- bar' ) ;
46+ const config = ComponentRegistry . getConfig ( 'bar-chart ' ) ;
4747 const defaults = config ?. defaultProps ;
4848
4949 expect ( defaults ) . toBeDefined ( ) ;
0 commit comments