@@ -72,7 +72,9 @@ const createCollectionState = ({
7272} ;
7373
7474const withFontAndColorRefs = ( state ) => {
75- withFiles ( state , [ { id : "file-font-ui" , type : "font" , mimeType : "font/ttf" } ] ) ;
75+ withFiles ( state , [
76+ { id : "file-font-ui" , type : "font" , mimeType : "font/ttf" } ,
77+ ] ) ;
7678 state . fonts . items [ "font-ui" ] = {
7779 id : "font-ui" ,
7880 type : "font" ,
@@ -1205,12 +1207,12 @@ const directCases = [
12051207 state,
12061208 command : {
12071209 type : "file.create" ,
1208- payload : {
1209- fileId : "file-a" ,
1210- data : {
1211- mimeType : "image/png" ,
1212- size : 128 ,
1213- sha256 : "file-a-sha256" ,
1210+ payload : {
1211+ fileId : "file-a" ,
1212+ data : {
1213+ mimeType : "image/png" ,
1214+ size : 128 ,
1215+ sha256 : "file-a-sha256" ,
12141216 } ,
12151217 } ,
12161218 } ,
@@ -1736,6 +1738,7 @@ const directCases = [
17361738 rotation : 0 ,
17371739 text : "More" ,
17381740 textStyleId : "text-style-ui" ,
1741+ variableId : "_dialogueTextSpeed" ,
17391742 } ,
17401743 } ,
17411744 } ,
@@ -1756,6 +1759,7 @@ const directCases = [
17561759 rotation : 0 ,
17571760 text : "More" ,
17581761 textStyleId : "text-style-ui" ,
1762+ variableId : "_dialogueTextSpeed" ,
17591763 } ) ;
17601764 } ,
17611765 runNegative : ( ) => {
@@ -1803,16 +1807,16 @@ const directCases = [
18031807 layoutId : "layout-dialogue" ,
18041808 elementId : "text-a" ,
18051809 data : {
1806- opacity : 0.5 ,
1810+ variableId : "_dialogueTextSpeed" ,
18071811 } ,
18081812 } ,
18091813 } ,
18101814 } ) ;
18111815
18121816 expect (
18131817 result . state . layouts . items [ "layout-dialogue" ] . elements . items [ "text-a" ]
1814- . opacity ,
1815- ) . toBe ( 0.5 ) ;
1818+ . variableId ,
1819+ ) . toBe ( "_dialogueTextSpeed" ) ;
18161820 } ,
18171821 runNegative : ( ) => {
18181822 expectValidation ( ( ) =>
@@ -1931,6 +1935,7 @@ const directCases = [
19311935 rotation : 0 ,
19321936 text : "More" ,
19331937 textStyleId : "text-style-ui" ,
1938+ variableId : "_dialogueTextSpeed" ,
19341939 } ,
19351940 } ,
19361941 } ,
@@ -1951,6 +1956,7 @@ const directCases = [
19511956 rotation : 0 ,
19521957 text : "More" ,
19531958 textStyleId : "text-style-ui" ,
1959+ variableId : "_dialogueTextSpeed" ,
19541960 } ) ;
19551961 } ,
19561962 runNegative : ( ) => {
@@ -1998,16 +2004,16 @@ const directCases = [
19982004 controlId : "control-default" ,
19992005 elementId : "text-a" ,
20002006 data : {
2001- opacity : 0.5 ,
2007+ variableId : "_dialogueTextSpeed" ,
20022008 } ,
20032009 } ,
20042010 } ,
20052011 } ) ;
20062012
20072013 expect (
20082014 result . state . controls . items [ "control-default" ] . elements . items [ "text-a" ]
2009- . opacity ,
2010- ) . toBe ( 0.5 ) ;
2015+ . variableId ,
2016+ ) . toBe ( "_dialogueTextSpeed" ) ;
20112017 } ,
20122018 runNegative : ( ) => {
20132019 expectValidation ( ( ) =>
0 commit comments