Skip to content

Commit

Permalink
fix: test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeasonstudio committed Jan 25, 2024
1 parent a3db5bb commit 47b6125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"vitest": "^1.2.1"
},
"peerDependencies": {
"prettier": "^3.2.4"
"prettier": "^3.0.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
Expand Down
2 changes: 1 addition & 1 deletion src/tests/statement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test('whileStatement', () => {
test('forStatement', () => {
expect(createParse((p) => p.forStatement())(`for (uint i = 0; i < 10; i++) {}`)).toMatchObject({
initializationExpression: { type: 'VariableDeclarationStatement' },
conditionExpression: { operator: '<', left: 'i', right: { value: '10' } },
conditionExpression: { expression: { operator: '<', left: 'i', right: { value: '10' } } },
loopExpression: { operator: '++', left: 'i' },
});
});
Expand Down

0 comments on commit 47b6125

Please sign in to comment.