From a4f7413788a8377a70b74c49e11d4477131c74d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Fri, 21 Jun 2024 15:03:43 +0200 Subject: [PATCH] Test `Bare.exit()` in `suspend` --- test/CMakeLists.txt | 1 + test/exit-on-suspend.js | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 test/exit-on-suspend.js diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b4c67456..ebee9611 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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 diff --git a/test/exit-on-suspend.js b/test/exit-on-suspend.js new file mode 100644 index 00000000..01909195 --- /dev/null +++ b/test/exit-on-suspend.js @@ -0,0 +1,6 @@ +/* global Bare */ +Bare + .on('suspend', () => { + Bare.exit() + }) + .suspend()