Skip to content

Commit

Permalink
Test Bare.exit() in suspend
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Jun 21, 2024
1 parent bed9ca3 commit a4f7413
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ list(APPEND tests
argv-empty.c
exit-on-before-exit.js
exit-on-idle.js
exit-on-suspend.js
import-addon.cjs
import-addon.mjs
import-bundle.js
Expand Down
6 changes: 6 additions & 0 deletions test/exit-on-suspend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* global Bare */
Bare
.on('suspend', () => {
Bare.exit()
})
.suspend()

0 comments on commit a4f7413

Please sign in to comment.