Skip to content

Commit

Permalink
Fix validateAST test
Browse files Browse the repository at this point in the history
  • Loading branch information
huynhtrankhanh committed Mar 11, 2024
1 parent 4e1ae2e commit 3955614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/validateAST.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const getCombinedError = (code) => {
throw error
return { type: 'parse error', message: error.message }
}
return { type: 'validation error', errors: validateAST(transformed) }
return { type: 'validation error', errors: validateAST([transformed]) }
}

/**
Expand Down

0 comments on commit 3955614

Please sign in to comment.