Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jul 5, 2023
1 parent 94cfb6e commit 1c44afe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const createIssuePermissions =
appPermissions["api.github.com"].paths["/repos/{owner}/{repo}/issues"].post;
console.log(
`Required app permissions to create an issue: %o`,
createIssuePermissions
createIssuePermissions,
);

const issuesPermission = appPermissions["api.github.com"].permissions.issues;
Expand Down
6 changes: 3 additions & 3 deletions scripts/update.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ async function update(options) {
permissions,
paths,
}),
{ parser: "json" }
)
{ parser: "json" },
),
);
console.log("%s written", GENERATED_JSON_FILE_PATH);
}
Expand Down Expand Up @@ -146,6 +146,6 @@ function toPermissionsObject(paths) {

return map;
},
{ read: [], write: [] }
{ read: [], write: [] },
);
}
8 changes: 4 additions & 4 deletions test/smoke-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ const dotcomPermissions = appPermissions["api.github.com"];

assert(
"permissions" in dotcomPermissions,
'"api.github.com" export has "permissions" key'
'"api.github.com" export has "permissions" key',
);
assert("paths" in dotcomPermissions, '"api.github.com" export has "paths" key');

assert(
"meta" in dotcomPermissions.permissions,
'"permissions" export has "meta" key'
'"permissions" export has "meta" key',
);
assert(
typeof dotcomPermissions.paths["/"].GET === "object",
'"paths" export has ["/"]["GET"] keys'
'"paths" export has ["/"]["GET"] keys',
);

const metaPermission = dotcomPermissions.permissions.meta;
Expand All @@ -28,7 +28,7 @@ assert(Array.isArray(metaPermission.write), 'meta permission has "write" key');
const rootPath = dotcomPermissions.paths["/"].GET;
assert(
typeof rootPath.permission === "string",
'rout path has "permission" key'
'rout path has "permission" key',
);
assert(typeof rootPath.access === "string", 'rout path has "access" key');

Expand Down

0 comments on commit 1c44afe

Please sign in to comment.