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
Joseph Frazier 2017-06-01 17:40:49 -04:00 committed by Christopher Chedeau
parent 5d63d34b77
commit a983d30663
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ function prettyprint(src, filename, options) {
src,
Object.assign(
{
filename
filepath: filename
},
options
)