Skip to content

Commit 4226cc6

Browse files
committed
Add back debug-test utility
1 parent 9bc1c2d commit 4226cc6

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tests/helpers/debug-test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { DEBUG } from '@glimmer/env';
2+
import { test } from 'qunit';
3+
4+
export default function debugTest(description, callback) {
5+
return test(description, function (assert) {
6+
if (!DEBUG) {
7+
assert.pushResult({
8+
result: true,
9+
message: 'debug functions are disabled',
10+
});
11+
return;
12+
}
13+
14+
return callback.apply(this, arguments);
15+
});
16+
}

0 commit comments

Comments
 (0)