This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
f5291e2f01
prettier
/
tests
/
comments
/
jsfmt.spec.js
3 lines
63 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Add tests for comments (#330) This adds a snapshot test for all of the weird things I've seen happening with comments.
2017-01-19 22:28:40 +03:00
run
_spec
(
_
_dirname
)
;
Introduce --parser/parser option and deprecate --flow-parser/useFlowParser (#342) The previous API was inconsistent. The new one is ```js --parser flow --parser babylon {parser: 'flow'} {parser: 'babylon'} ``` if we ever want to add new parsers in the future it'll allow that more easily. I put a console.log in parser.js in both functions and tested that the test suite worked both with and without the change in run_spec. I also tested that both the previous and new command line options are working. At some point in the future we'll likely want to get rid of the old api but might as well keep supporting it so we don't break anyone for now.
2017-01-20 01:35:12 +03:00
run
_spec
(
_
_dirname
,
{
parser
:
'babylon'
}
)
;