Skip to content

Commit

Permalink
test: fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jeasonstudio committed Jan 18, 2024
1 parent 054ba06 commit 49a6b63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/tests/statement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test('whileStatement', () => {
test('forStatement', () => {
expect(createParse((p) => p.forStatement())(`for (uint i = 0; i < 10; i++) {}`)).toMatchObject({
initializationExpression: { type: 'VariableDeclarationStatement' },
conditionExpression: { expression: { operator: '<', left: 'i', right: { value: '10' } } },
conditionExpression: { operator: '<', left: 'i', right: { value: '10' } },
loopExpression: { operator: '++', left: 'i' },
});
});
Expand Down
1 change: 0 additions & 1 deletion src/tests/traverse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ contract HelloWorld {
expect(p.getFlattenParents().length).toBe(1);
expect(p.getFlattenParents(1).length).toBe(1);
}
console.log(p.path);
});
});

0 comments on commit 49a6b63

Please sign in to comment.