Skip to content

Commit 67e5f75

Browse files
authored
fix: indent with spaces (#31)
1 parent 5cc73dc commit 67e5f75

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function script(octokit, repository, options) {
6767

6868
renovateConfigObj.extends = newExtends;
6969

70-
return JSON.stringify(jsonFile, null, "\t");
70+
return JSON.stringify(jsonFile, null, " ") + "\n";
7171
},
7272
message: "build: renovate setup",
7373
});

script.test.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ test("preserves spacing for JSON files", async () => {
9898
equal(
9999
Buffer.from(body.content, "base64").toString(),
100100
"{\n" +
101-
'\t"name": "octoherd-cli",\n' +
102-
'\t"version": "0.0.0",\n' +
103-
'\t"description": "",\n' +
104-
'\t"main": "index.js",\n' +
105-
'\t"scripts": {\n' +
106-
'\t\t"test": "echo \\"Error: no test specified\\" && exit 1"\n' +
107-
"\t},\n" +
108-
'\t"author": "",\n' +
109-
'\t"license": "ISC",\n' +
110-
'\t"extends": [\n' +
111-
'\t\t"github>octoherd/.github"\n' +
112-
"\t]\n" +
113-
"}"
101+
' "name": "octoherd-cli",\n' +
102+
' "version": "0.0.0",\n' +
103+
' "description": "",\n' +
104+
' "main": "index.js",\n' +
105+
' "scripts": {\n' +
106+
' "test": "echo \\"Error: no test specified\\" && exit 1"\n' +
107+
" },\n" +
108+
' "author": "",\n' +
109+
' "license": "ISC",\n' +
110+
' "extends": [\n' +
111+
' "github>octoherd/.github"\n' +
112+
" ]\n" +
113+
"}\n"
114114
);
115115

116116
return true;

0 commit comments

Comments
 (0)