Skip to content

Commit c3e6ba9

Browse files
committed
Drop unintended inclusion
1 parent e70d48f commit c3e6ba9

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

test/Seq.Syntax.Tests/Templates/TemplateParserTests.cs

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ public class TemplateParserTests
1515
[InlineData("Syntax {+Err}or", "Syntax error (line 1, column 9): unexpected operator `+`, expected expression.")]
1616
[InlineData("Syntax {1 + 2 and}or", "Syntax error (line 1, column 18): unexpected `}`, expected expression.")]
1717
[InlineData("Missing {Align,-} digits", "Syntax error (line 1, column 17): unexpected `}`, expected number.")]
18-
[InlineData("Non-digit {Align,x} specifier", "Syntax error (line 1, column 18): unexpected identifier `x`, expected alignment and width.")]
19-
[InlineData("Empty {Align,} digits", "Syntax error (line 1, column 14): unexpected `}`, expected alignment and width.")]
18+
[InlineData("Non-digit {Align,x} specifier",
19+
"Syntax error (line 1, column 18): unexpected identifier `x`, expected alignment and width.")]
20+
[InlineData("Empty {Align,} digits",
21+
"Syntax error (line 1, column 14): unexpected `}`, expected alignment and width.")]
2022
public void ErrorsAreReported(string input, string error)
2123
{
2224
Assert.False(ExpressionTemplate.TryParse(input, null, null, null, out _, out var actual));
@@ -31,26 +33,4 @@ public void DefaultAlignmentIsNull()
3133
var avt = Assert.IsType<FormattedExpression>(template);
3234
Assert.Null(avt.Alignment);
3335
}
34-
35-
const string Template =
36-
"""
37-
{ {
38-
operationName: 'CreateLinearIssueFromSeq',
39-
query: 'mutation CreateLinearIssueFromSeq($input: IssueCreateInput!) { issueCreate(input: $input) { success } }',
40-
variables: {
41-
input: {
42-
title: @Message,
43-
description: 'https://seq.xxxxxxx.io/',
44-
teamId: 'xxxxxxxx-5f41-4492-9372-7cf3f699b97b'
45-
}
4636
}
47-
} }
48-
""";
49-
50-
[Fact]
51-
public void TemplateCanBeParsed()
52-
{
53-
var parser = new TemplateParser();
54-
Assert.True(parser.TryParse(Template, out _, out var error), error);
55-
}
56-
}

0 commit comments

Comments
 (0)