From 39ef8299cefea160458d3fac489fd2db8e7250e3 Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Thu, 9 Aug 2018 08:23:45 +0200 Subject: [PATCH] fix(test): calling an asynchronous function without callback is deprecated `fs` asynchronous functions now demand a callback. see https://nodejs.org/docs/latest-v8.x/api/fs.html#fs_fs_readfile_path_options_callback --- test/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/setup.js b/test/setup.js index ed1e8b8..ae5bd8f 100644 --- a/test/setup.js +++ b/test/setup.js @@ -27,7 +27,7 @@ function compareFixtures(name, msg, opts, postcssOpts, plugin) { const expected = read(`fixtures/${name}.expected`); // handy thing: checkout actual in the *.actual.css file - fs.writeFile(`test/fixtures/${name}.actual.css`, actual); + fs.writeFileSync(`test/fixtures/${name}.actual.css`, actual); assert.equal(actual, expected); });