Skip to content

Commit

Permalink
test: update ast tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeasonstudio committed Jan 25, 2024
1 parent 93a5625 commit a3db5bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/tests/meta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ test('importDirective', () => {
expect(
createParse((p) => p.importDirective())(`import * as Foo from "./Foo.sol";`),
).toMatchObject({
importAll: true,
unitAlias: 'Foo',
symbolAliases: [],
});
expect(createParse((p) => p.importDirective())(`import "./Foo.sol" as Foo;`)).toMatchObject({
importAll: false,
unitAlias: 'Foo',
symbolAliases: [],
});
Expand Down
2 changes: 0 additions & 2 deletions src/tests/type.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ test('typeName', () => {

expect(createParse((p) => p.elementaryTypeName(true))(`address payable`)).toBe('address');
expect(createParse((p) => p.typeName())(`uint128[]`)).toBe('uint128[]');

console.log(createParse((p) => p.typeName())(`uint128[]`));
});

0 comments on commit a3db5bb

Please sign in to comment.