@@ -16,37 +16,33 @@ export const actionTypes = {
1616 CLOSE_INFO_MODAL : 'CLOSE_INFO_MODAL' ,
1717
1818 UPDATE_FILE_PATH : 'UPDATE_FILE_PATH' ,
19+ UPDATE_TEST_TYPE : 'UPDATE_TEST_TYPE' ,
20+ CREATE_PUPPETEER_URL : 'CREATE_PUPPETEER_URL' ,
1921
2022 TOGGLE_ACC : 'TOGGLE_ACC' ,
2123} ;
2224
2325/* --------------------------------- Actions -------------------------------- */
2426
25- export const addDescribeBlock = ( ) => {
26- return {
27- type : actionTypes . ADD_DESCRIBE_BLOCK ,
28- } ;
29- } ;
27+ export const addDescribeBlock = ( ) => ( {
28+ type : actionTypes . ADD_DESCRIBE_BLOCK ,
29+ } ) ;
3030
31- export const deleteDescribeBlock = ( describeId : string ) => {
32- return {
33- type : actionTypes . DELETE_DESCRIBE_BLOCK ,
34- describeId,
35- } ;
36- } ;
31+ export const deleteDescribeBlock = ( describeId : string ) => ( {
32+ type : actionTypes . DELETE_DESCRIBE_BLOCK ,
33+ describeId,
34+ } ) ;
3735
3836export const updateDescribeText = ( text : string , describeId : string ) => ( {
3937 type : actionTypes . UPDATE_DESCRIBE_TEXT ,
4038 text,
4139 describeId,
4240} ) ;
4341
44- export const updateDescribeOrder = ( reorderedDescribe : Array < string > ) => {
45- return {
46- type : actionTypes . UPDATE_DESCRIBE_ORDER ,
47- reorderedDescribe,
48- } ;
49- } ;
42+ export const updateDescribeOrder = ( reorderedDescribe : Array < string > ) => ( {
43+ type : actionTypes . UPDATE_DESCRIBE_ORDER ,
44+ reorderedDescribe,
45+ } ) ;
5046
5147export const addItStatement = ( describeId : string ) => ( {
5248 type : actionTypes . ADD_ITSTATEMENT ,
@@ -65,28 +61,36 @@ export const updateItStatementText = (text: string, itId: string) => ({
6561 text,
6662} ) ;
6763
68- export const updateItStatementOrder = ( reorderedIt : Array < string > , describeId : string ) => {
69- return {
70- type : actionTypes . UPDATE_ITSTATEMENT_ORDER ,
71- reorderedIt,
72- describeId,
73- } ;
74- } ;
64+ export const updateItStatementOrder = ( reorderedIt : Array < string > , describeId : string ) => ( {
65+ type : actionTypes . UPDATE_ITSTATEMENT_ORDER ,
66+ reorderedIt,
67+ describeId,
68+ } ) ;
7569
7670export const createNewTest = ( ) => ( {
7771 type : actionTypes . CREATE_NEW_TEST ,
7872} ) ;
7973
80- export const openInfoModal = ( ) => {
81- return { type : actionTypes . OPEN_INFO_MODAL } ;
82- } ;
74+ export const openInfoModal = ( ) => ( {
75+ type : actionTypes . OPEN_INFO_MODAL ,
76+ } ) ;
8377
84- export const closeInfoModal = ( ) => {
85- return { type : actionTypes . CLOSE_INFO_MODAL } ;
86- } ;
78+ export const closeInfoModal = ( ) => ( {
79+ type : actionTypes . CLOSE_INFO_MODAL ,
80+ } ) ;
8781
88- export const updateImportFilePath = ( fileName : string , filePath : string ) => ( {
82+ export const updateFilePath = ( fileName : string , filePath : string ) => ( {
8983 type : actionTypes . UPDATE_FILE_PATH ,
9084 fileName,
9185 filePath,
9286} ) ;
87+
88+ export const updateTestType = ( testType : string ) => ( {
89+ type : actionTypes . UPDATE_TEST_TYPE ,
90+ testType,
91+ } ) ;
92+
93+ export const createPuppeteerUrl = ( puppeteerUrl : string ) => ( {
94+ type : actionTypes . CREATE_PUPPETEER_URL ,
95+ puppeteerUrl,
96+ } ) ;
0 commit comments