@@ -12,6 +12,9 @@ describe('Meteosapi', () => {
12
12
assert . notEqual ( data . tomorrow , undefined , 'Data.tomorrow should be defined' ) ;
13
13
assert . notEqual ( data . next2 , undefined , 'Data.next2 should be defined' ) ;
14
14
assert . notEqual ( data . forecast , undefined , 'Data. forecast be defined' ) ;
15
+ assert . notEqual ( data . today . rainProb , undefined , 'Rain probability should be defined for today' ) ;
16
+ assert . notEqual ( data . tomorrow . rainProb , undefined , 'Rain probability should be defined for tomorrow' ) ;
17
+ assert . notEqual ( data . next2 . rainProb , undefined , 'Rain probability should be defined for next2' ) ;
15
18
} ) ;
16
19
} ) ;
17
20
it ( 'should return the simplified wheather' , ( ) => {
@@ -23,6 +26,8 @@ describe('Meteosapi', () => {
23
26
assert . notEqual ( data . next2 , undefined , 'Data.next2 should be defined' ) ;
24
27
assert . equal ( data . forecast , undefined , 'Data.forecast should be defined' ) ;
25
28
assert . notEqual ( data . today . rainProb , undefined , 'Rain probability should be defined for today' ) ;
29
+ assert . notEqual ( data . tomorrow . rainProb , undefined , 'Rain probability should be defined for tomorrow' ) ;
30
+ assert . notEqual ( data . next2 . rainProb , undefined , 'Rain probability should be defined for next2' ) ;
26
31
} ) ;
27
32
} ) ;
28
33
} ) ;
0 commit comments