Skip to content

Commit

Permalink
Refactor debug check
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Feb 24, 2021
1 parent 8d401d6 commit b4e5b9a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/helpers/debug-test.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { runInDebug } from '@ember/debug';
import { DEBUG } from '@glimmer/env'
import { test } from 'qunit';

let canRunDebugFunctions = false;

runInDebug(() => (canRunDebugFunctions = true));

export default function debugTest(description, callback) {
return test(description, function (assert) {
if (!canRunDebugFunctions) {
if (!DEBUG) {
assert.ok(true, 'debug functions are disabled');
return;
}
Expand Down

0 comments on commit b4e5b9a

Please sign in to comment.