Use `filepath` option instead of `filename` in tests (#1846)
This silences the validation warnings like:
Unknown option "filename" with value "/home/travis/build/prettier/prettier/tests/flow/es_declare_module/flow-typed/declares.js" was found.
See here for an example:
https://travis-ci.org/prettier/prettier/jobs/238474756#L397
Related to commit 0d9b04b
(https://github.com/prettier/prettier/pull/1835)
master
parent
5d63d34b77
commit
a983d30663
|
@ -113,7 +113,7 @@ function prettyprint(src, filename, options) {
|
|||
src,
|
||||
Object.assign(
|
||||
{
|
||||
filename
|
||||
filepath: filename
|
||||
},
|
||||
options
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue