Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 23c497f

Browse files
committed
test: fix test for npm 8
1 parent e125e9c commit 23c497f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/prepare.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ test('Use default indentation and newline if it cannot be detected', async (t) =
137137
);
138138

139139
// Verify package.json has been updated
140-
t.is(await readFile(packagePath, 'utf-8'), `{\n "name": "package-name",\n "version": "1.0.0"\n}\n`);
140+
t.is(await readFile(packagePath, 'utf-8'), `{"name":"package-name","version":"1.0.0"}`);
141141

142142
// Verify the logger has been called with the version updated
143143
t.is(t.context.log.args[0][0], 'Write version 1.0.0 to package.json');

0 commit comments

Comments
 (0)