-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove strip-comments dependency (#1066)
* removing strip-comments * updating dependencies * rebase fix * adding missing test * Include filename in error * adding the case where there is no filepath in the options --------- Co-authored-by: Franco Victorio <[email protected]>
- Loading branch information
Showing
7 changed files
with
117 additions
and
80 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/format/FunctionDefinitionsV0.5.0/__snapshots__/format.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`FunctionDefinitions.sol format 1`] = ` | ||
====================================options===================================== | ||
parsers: ["slang-solidity"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
contract FunctionDefinitions { | ||
function () external {} | ||
function () external payable {} | ||
} | ||
=====================================output===================================== | ||
contract FunctionDefinitions { | ||
function() external {} | ||
function() external payable {} | ||
} | ||
================================================================================ | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
runFormatTest(import.meta, ['slang-solidity']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters