Skip to content

Commit 28341de

Browse files
committed
test: drop unused meta option from parser-error-test parse() calls
1 parent e3e3ab3 commit 28341de

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/@glimmer/syntax/test/parser-error-test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
77
test('empty mustache {{}} is a parse error (invalid-3.hbs)', (assert) => {
88
assert.throws(
99
() => {
10-
parse('<a>\n\n{{}}\n', { meta: { moduleName: 'test-module' } });
10+
parse('<a>\n\n{{}}\n');
1111
},
1212
/./u,
1313
'empty mustache should throw a parse error'
@@ -18,7 +18,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
1818
test('unclosed mustache {{@name} is a parse error (invalid.hbs)', (assert) => {
1919
assert.throws(
2020
() => {
21-
parse('<A >\nx, {{@name}\n', { meta: { moduleName: 'test-module' } });
21+
parse('<A >\nx, {{@name}\n');
2222
},
2323
/./u,
2424
'unclosed mustache should throw a parse error'
@@ -29,7 +29,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
2929
test('bare tilde mustache {{~}} is a parse error (tilde-comments-1.hbs)', (assert) => {
3030
assert.throws(
3131
() => {
32-
parse('{{~}}\n', { meta: { moduleName: 'test-module' } });
32+
parse('{{~}}\n');
3333
},
3434
/./u,
3535
'bare tilde mustache should throw a parse error'
@@ -40,7 +40,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
4040
test('double tilde mustache {{~~}} is a parse error (tilde-comments-2.hbs)', (assert) => {
4141
assert.throws(
4242
() => {
43-
parse('{{~~}}\n', { meta: { moduleName: 'test-module' } });
43+
parse('{{~~}}\n');
4444
},
4545
/./u,
4646
'double tilde mustache should throw a parse error'
@@ -51,7 +51,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
5151
test('mustache with bare @ is a parse error ({{@}})', (assert) => {
5252
assert.throws(
5353
() => {
54-
parse('{{@}}', { meta: { moduleName: 'test-module' } });
54+
parse('{{@}}');
5555
},
5656
/./u,
5757
'mustache with bare @ should throw a parse error'
@@ -62,7 +62,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
6262
test('mustache with @<digit> is a parse error ({{@0}})', (assert) => {
6363
assert.throws(
6464
() => {
65-
parse('{{@0}}', { meta: { moduleName: 'test-module' } });
65+
parse('{{@0}}');
6666
},
6767
/./u,
6868
'@<digit> is not a valid identifier'
@@ -74,7 +74,7 @@ module('[glimmer-syntax] Parser - parse error regression fixtures', function ()
7474
for (const input of ['{{@@}}', '{{@=}}', '{{@!}}']) {
7575
assert.throws(
7676
() => {
77-
parse(input, { meta: { moduleName: 'test-module' } });
77+
parse(input);
7878
},
7979
/./u,
8080
`${input} should throw a parse error`

0 commit comments

Comments
 (0)