Skip to content

Commit

Permalink
+1 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Dec 31, 2023
1 parent 762737a commit a3fb340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion button/button.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace $.$$ {
$mol_assert_not( clicked )
} ,

'Store error'($) {
async 'Store error'($) {

const clicker = $mol_button.make({
$,
Expand All @@ -46,6 +46,7 @@ namespace $.$$ {

const event = $mol_dom_context.document.createEvent( 'mouseevent' )
$mol_assert_fail( ()=> clicker.event_activate( event ), 'Test error' )
await Promise.resolve()
$mol_assert_equal( clicker.status()[0].message, 'Test error' )

} ,
Expand Down

0 comments on commit a3fb340

Please sign in to comment.