@@ -27,7 +27,7 @@ describe("Test that getComponentStateValue()", () => {
2727 it ( "works on 1st level" , ( ) => {
2828 expect (
2929 getComponentStateValue ( componentState , {
30- kind : "Component " ,
30+ type : "Input " ,
3131 id : "b1" ,
3232 property : "value" ,
3333 } ) ,
@@ -37,7 +37,7 @@ describe("Test that getComponentStateValue()", () => {
3737 it ( "works on 2nd level" , ( ) => {
3838 expect (
3939 getComponentStateValue ( componentState , {
40- kind : "Component " ,
40+ type : "Input " ,
4141 id : "p1" ,
4242 property : "chart" ,
4343 } ) ,
@@ -47,15 +47,15 @@ describe("Test that getComponentStateValue()", () => {
4747 it ( "works on 3rd level" , ( ) => {
4848 expect (
4949 getComponentStateValue ( componentState , {
50- kind : "Component " ,
50+ type : "Input " ,
5151 id : "cb1" ,
5252 property : "value" ,
5353 } ) ,
5454 ) . toEqual ( true ) ;
5555
5656 expect (
5757 getComponentStateValue ( componentState , {
58- kind : "Component " ,
58+ type : "Input " ,
5959 id : "dd1" ,
6060 property : "value" ,
6161 } ) ,
@@ -67,21 +67,21 @@ describe("Test that getInputValueFromState()", () => {
6767 it ( "works with input.id and input.property" , ( ) => {
6868 const state = { x : { y : 26 } } ;
6969 expect (
70- getInputValueFromState ( { kind : "State" , id : "x" , property : "y" } , state ) ,
70+ getInputValueFromState ( { type : "State" , id : "x" , property : "y" } , state ) ,
7171 ) . toEqual ( 26 ) ;
7272 } ) ;
7373
7474 it ( "works with arrays indexes" , ( ) => {
7575 const state = { x : [ 4 , 5 , 6 ] } ;
7676 expect (
77- getInputValueFromState ( { kind : "State" , id : "x" , property : "1" } , state ) ,
77+ getInputValueFromState ( { type : "State" , id : "x" , property : "1" } , state ) ,
7878 ) . toEqual ( 5 ) ;
7979 } ) ;
8080
8181 it ( "works without input.id" , ( ) => {
8282 const state = { x : [ 4 , 5 , 6 ] } ;
8383 expect (
84- getInputValueFromState ( { kind : "State" , property : "x" } , state ) ,
84+ getInputValueFromState ( { type : "State" , property : "x" } , state ) ,
8585 ) . toEqual ( [ 4 , 5 , 6 ] ) ;
8686 } ) ;
8787} ) ;
0 commit comments