@@ -237,7 +237,7 @@ test('Action can get sync return value', () => {
237237return Promise . resolve ( ) . then ( ( ) => expect ( result === 2 ) . toBe ( true ) ) ;
238238} ) ;
239239
240- test ( 'Action can get async return value' , ( ) => {
240+ test ( 'Action can get async return value' , async ( ) => {
241241let data = 0 ;
242242const dynamicObj = observable ( { counter :0 } ) ;
243243observe ( ( ) => {
@@ -928,11 +928,11 @@ test('Action not handle async function!!', async () => {
928928} ) ;
929929
930930return Promise . resolve ( )
931- . then ( ( ) => expect ( runCount === 2 ) . toBe ( true ) ) // TODO:6
932- . then ( ( ) => expect ( num === 2 ) . toBe ( true ) ) ; // TODO:6
931+ . then ( ( ) => expect ( runCount === 2 ) . toBe ( false ) )
932+ . then ( ( ) => expect ( num === 2 ) . toBe ( false ) ) ;
933933} ) ;
934934
935- test ( 'Action handle async function with Action' , ( ) => {
935+ test ( 'Action handle async function with Action' , async ( ) => {
936936let runCount = 0 ;
937937let num = 0 ;
938938
@@ -961,8 +961,8 @@ test('Action handle async function with Action', () => {
961961} ) ;
962962
963963return Promise . resolve ( )
964- . then ( ( ) => expect ( runCount === 3 ) . toBe ( false ) ) // TODO: true
965- . then ( ( ) => expect ( num === 5 ) . toBe ( false ) ) ; // TODO: true
964+ . then ( ( ) => expect ( runCount === 3 ) . toBe ( true ) )
965+ . then ( ( ) => expect ( num === 5 ) . toBe ( true ) ) ;
966966} ) ;
967967
968968/**