From 807443ff8027a8784a35d4db256d597073de7576 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Mon, 17 Aug 2020 16:17:25 -0400 Subject: [PATCH] test: fix missing JSON.stringify --- test/tap/publish-invalid-semver-tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tap/publish-invalid-semver-tag.js b/test/tap/publish-invalid-semver-tag.js index b5d499f377248..9c2f40813b06e 100644 --- a/test/tap/publish-invalid-semver-tag.js +++ b/test/tap/publish-invalid-semver-tag.js @@ -28,7 +28,7 @@ function resetPackage (options) { chownSync(CACHE_DIR, sudoUID, sudoGID) } - fs.writeFileSync(path.resolve(PKG_DIR, 'package.json'), DEFAULT_PKG) + fs.writeFileSync(path.resolve(PKG_DIR, 'package.json'), JSON.stringify(DEFAULT_PKG)) } test('setup', function (t) {