Skip to content

Commit 342ca9e

Browse files
committed
Add comment to explain strategy
1 parent 5fab17e commit 342ca9e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/fixtures/build-mode-tests/debug-utils-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { assert } from '@ember/debug';
44
module('debug utils remain in the build', function () {
55
test('debug utils work in tests', function(qAssert) {
66
qAssert.throws(() => {
7+
// If we get the build mode wrong, e.g.: `NODE_ENV` != 'development'
8+
// then the assert will be stripped and qAssert will not detect an error being thrown
79
assert('it works', false);
810
}, 'it works');
911
});

0 commit comments

Comments
 (0)