Skip to content

Commit 5a47255

Browse files
committed
Fix formatting for DEBUG guard
1 parent f8ea67c commit 5a47255

File tree

1 file changed

+4
-3
lines changed
  • packages/@ember/-internals/glimmer/tests/integration/modifiers

1 file changed

+4
-3
lines changed

packages/@ember/-internals/glimmer/tests/integration/modifiers/on-test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,10 @@ moduleFor(
245245
this.assertCounts({ adds: 1, removes: 1 });
246246
}
247247

248-
249248
[`@test it throws a helpful error when callback is undefined`](assert) {
250249
if (DEBUG) {
251-
let expectedMessage = /You must pass a function as the second argument to the `on` modifier/;
250+
let expectedMessage =
251+
/You must pass a function as the second argument to the `on` modifier/;
252252
assert.throws(() => {
253253
this.render('<button {{on "click" undefined}}>Click Me</button>');
254254
}, expectedMessage);
@@ -259,7 +259,8 @@ moduleFor(
259259

260260
[`@test it throws a helpful error when callback is null`](assert) {
261261
if (DEBUG) {
262-
let expectedMessage = /You must pass a function as the second argument to the `on` modifier/;
262+
let expectedMessage =
263+
/You must pass a function as the second argument to the `on` modifier/;
263264
assert.throws(() => {
264265
this.render('<button {{on "click" null}}>Click Me</button>');
265266
}, expectedMessage);

0 commit comments

Comments
 (0)