Skip to content

Commit

Permalink
Code review feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjprescott committed Apr 16, 2024
1 parent 5c604fd commit 46c5f81
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/compiler/test/parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,15 +721,15 @@ describe("compiler: parser", () => {
`@doc("foo")\n#suppress "foo"\nnamespace Foo.Bar {}`,
(node) => {
const fooNs = node.statements[0];
assert(fooNs.kind === SyntaxKind.NamespaceStatement);
strictEqual(fooNs.kind, SyntaxKind.NamespaceStatement);
const barNs = (fooNs as any).statements;
assert(barNs.kind === SyntaxKind.NamespaceStatement);
assert(fooNs.id.sv === "Foo");
assert(barNs.id.sv === "Bar");
assert(fooNs.directives?.length === 0);
assert(fooNs.decorators.length === 0);
assert(barNs.directives?.length === 1);
assert(barNs.decorators.length === 1);
strictEqual(barNs.kind, SyntaxKind.NamespaceStatement);
strictEqual(fooNs.id.sv, "Foo");
strictEqual(barNs.id.sv, "Bar");
strictEqual(fooNs.directives?.length, 0);
strictEqual(fooNs.decorators.length, 0);
strictEqual(barNs.directives?.length, 1);
strictEqual(barNs.decorators.length, 1);
},
],
]);
Expand Down

0 comments on commit 46c5f81

Please sign in to comment.