Skip to content

Commit ae5d30d

Browse files
committed
Add 1 more test
1 parent d63e266 commit ae5d30d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/attribute.tests.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,25 @@ describe("Attributes", () => {
208208
Token.Punctuation.CloseBracket]);
209209
});
210210

211+
it("Generic attributes should be highlighted multiple type parameters with regular arguments", async () => {
212+
213+
const input = `[Foo<T1, T2>(true)]`;
214+
const tokens = await tokenize(input);
215+
216+
tokens.should.deep.equal([
217+
Token.Punctuation.OpenBracket,
218+
Token.Type("Foo"),
219+
Token.Punctuation.TypeParameter.Begin,
220+
Token.Type("T1"),
221+
Token.Punctuation.Comma,
222+
Token.Type("T2"),
223+
Token.Punctuation.TypeParameter.End,
224+
Token.Punctuation.OpenParen,
225+
Token.Literal.Boolean.True,
226+
Token.Punctuation.CloseParen,
227+
Token.Punctuation.CloseBracket]);
228+
});
229+
211230
it("Generic attributes should be highlighted empty", async () => {
212231

213232
const input = `[Foo<>]`;

0 commit comments

Comments
 (0)