@@ -22,100 +22,100 @@ describe('Processing strategy: NUMERIC', () => {
2222 activated : true ,
2323 } ) ;
2424
25- it ( 'should agree when input EXIST in values - String type' , async ( ) => {
25+ it ( 'should agree when input EXIST in values - String type' , ( ) => {
2626 const strategyConfig = givenStrategyConfig ( OperationsType . EXIST , mock_values2 ) ;
27- const result = await processOperation ( strategyConfig , '3' ) ;
27+ const result = processOperation ( strategyConfig , '3' ) ;
2828 assert . isTrue ( result ) ;
2929 } ) ;
3030
31- it ( 'should agree when input EXIST in values - Number type' , async ( ) => {
31+ it ( 'should agree when input EXIST in values - Number type' , ( ) => {
3232 const strategyConfig = givenStrategyConfig ( OperationsType . EXIST , mock_values2 ) ;
33- const result = await processOperation ( strategyConfig , 3 ) ;
33+ const result = processOperation ( strategyConfig , 3 ) ;
3434 assert . isTrue ( result ) ;
3535 } ) ;
3636
37- it ( 'should NOT agree when input exist but test as DOES NOT EXIST ' , async ( ) => {
37+ it ( 'should NOT agree when input exist but test as DOES NOT EXIST ' , ( ) => {
3838 const strategyConfig = givenStrategyConfig ( OperationsType . NOT_EXIST , mock_values2 ) ;
39- const result = await processOperation ( strategyConfig , '1' ) ;
39+ const result = processOperation ( strategyConfig , '1' ) ;
4040 assert . isFalse ( result ) ;
4141 } ) ;
4242
43- it ( 'should agree when input DOES NOT EXIST in values' , async ( ) => {
43+ it ( 'should agree when input DOES NOT EXIST in values' , ( ) => {
4444 const strategyConfig = givenStrategyConfig ( OperationsType . NOT_EXIST , mock_values2 ) ;
45- const result = await processOperation ( strategyConfig , '2' ) ;
45+ const result = processOperation ( strategyConfig , '2' ) ;
4646 assert . isTrue ( result ) ;
4747 } ) ;
4848
49- it ( 'should agree when input is EQUAL to value' , async ( ) => {
49+ it ( 'should agree when input is EQUAL to value' , ( ) => {
5050 const strategyConfig = givenStrategyConfig ( OperationsType . EQUAL , mock_values1 ) ;
51- const result = await processOperation ( strategyConfig , '1' ) ;
51+ const result = processOperation ( strategyConfig , '1' ) ;
5252 assert . isTrue ( result ) ;
5353 } ) ;
5454
55- it ( 'should NOT agree when input is not equal but test as EQUAL' , async ( ) => {
55+ it ( 'should NOT agree when input is not equal but test as EQUAL' , ( ) => {
5656 const strategyConfig = givenStrategyConfig ( OperationsType . EQUAL , mock_values1 ) ;
57- const result = await processOperation ( strategyConfig , '2' ) ;
57+ const result = processOperation ( strategyConfig , '2' ) ;
5858 assert . isFalse ( result ) ;
5959 } ) ;
6060
61- it ( 'should agree when input is NOT EQUAL to value' , async ( ) => {
61+ it ( 'should agree when input is NOT EQUAL to value' , ( ) => {
6262 const strategyConfig = givenStrategyConfig ( OperationsType . NOT_EQUAL , mock_values1 ) ;
63- const result = await processOperation ( strategyConfig , '2' ) ;
63+ const result = processOperation ( strategyConfig , '2' ) ;
6464 assert . isTrue ( result ) ;
6565 } ) ;
6666
67- it ( 'should agree when input is GREATER than value' , async ( ) => {
67+ it ( 'should agree when input is GREATER than value' , ( ) => {
6868 let strategyConfig = givenStrategyConfig ( OperationsType . GREATER , mock_values1 ) ;
69- let result = await processOperation ( strategyConfig , '2' ) ;
69+ let result = processOperation ( strategyConfig , '2' ) ;
7070 assert . isTrue ( result ) ;
7171
7272 // test decimal
73- result = await processOperation ( strategyConfig , '1.01' ) ;
73+ result = processOperation ( strategyConfig , '1.01' ) ;
7474 assert . isTrue ( result ) ;
7575
7676 strategyConfig = givenStrategyConfig ( OperationsType . GREATER , mock_values3 ) ;
77- result = await processOperation ( strategyConfig , '1.55' ) ;
77+ result = processOperation ( strategyConfig , '1.55' ) ;
7878 assert . isTrue ( result ) ;
7979 } ) ;
8080
81- it ( 'should NOT agree when input is lower but tested as GREATER than value' , async ( ) => {
81+ it ( 'should NOT agree when input is lower but tested as GREATER than value' , ( ) => {
8282 let strategyConfig = givenStrategyConfig ( OperationsType . GREATER , mock_values1 ) ;
83- let result = await processOperation ( strategyConfig , '0' ) ;
83+ let result = processOperation ( strategyConfig , '0' ) ;
8484 assert . isFalse ( result ) ;
8585
8686 // test decimal
87- result = await processOperation ( strategyConfig , '0.99' ) ;
87+ result = processOperation ( strategyConfig , '0.99' ) ;
8888 assert . isFalse ( result ) ;
8989
9090 strategyConfig = givenStrategyConfig ( OperationsType . GREATER , mock_values3 ) ;
91- result = await processOperation ( strategyConfig , '1.49' ) ;
91+ result = processOperation ( strategyConfig , '1.49' ) ;
9292 assert . isFalse ( result ) ;
9393 } ) ;
9494
95- it ( 'should agree when input is LOWER than value' , async ( ) => {
95+ it ( 'should agree when input is LOWER than value' , ( ) => {
9696 let strategyConfig = givenStrategyConfig ( OperationsType . LOWER , mock_values1 ) ;
97- let result = await processOperation ( strategyConfig , '0' ) ;
97+ let result = processOperation ( strategyConfig , '0' ) ;
9898 assert . isTrue ( result ) ;
9999
100100 // test decimal
101- result = await processOperation ( strategyConfig , '0.99' ) ;
101+ result = processOperation ( strategyConfig , '0.99' ) ;
102102 assert . isTrue ( result ) ;
103103
104104 strategyConfig = givenStrategyConfig ( OperationsType . LOWER , mock_values3 ) ;
105- result = await processOperation ( strategyConfig , '1.49' ) ;
105+ result = processOperation ( strategyConfig , '1.49' ) ;
106106 assert . isTrue ( result ) ;
107107 } ) ;
108108
109- it ( 'should agree when input is BETWEEN values' , async ( ) => {
109+ it ( 'should agree when input is BETWEEN values' , ( ) => {
110110 const strategyConfig = givenStrategyConfig ( OperationsType . BETWEEN , mock_values2 ) ;
111- let result = await processOperation ( strategyConfig , '1' ) ;
111+ let result = processOperation ( strategyConfig , '1' ) ;
112112 assert . isTrue ( result ) ;
113113
114114 // test decimal
115- result = await processOperation ( strategyConfig , '2.99' ) ;
115+ result = processOperation ( strategyConfig , '2.99' ) ;
116116 assert . isTrue ( result ) ;
117117
118- result = await processOperation ( strategyConfig , '1.001' ) ;
118+ result = processOperation ( strategyConfig , '1.001' ) ;
119119 assert . isTrue ( result ) ;
120120 } ) ;
121121} ) ;
0 commit comments