test: refactor addons-napi/test_exception/test.js
- provide block scoping to prevent unintended side effects
- remove confusing and unnecessary assertion message
- use consisitent
actual, expected
argument order for assertions
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test