Run yarn prettier and fix styling

Signed-off-by: Kamil Markow <kamilmarkow@gmail.com>
This commit is contained in:
Kamil Markow
2023-11-17 13:06:52 -05:00
parent 48667b4d3a
commit 99fec87db1
2 changed files with 11 additions and 6 deletions
@@ -109,7 +109,9 @@ describe('github:environment:create examples', () => {
expect(
mockOctokit.rest.actions.createEnvironmentVariable,
).not.toHaveBeenCalled();
expect(mockOctokit.rest.actions.getEnvironmentPublicKey).not.toHaveBeenCalled();
expect(
mockOctokit.rest.actions.getEnvironmentPublicKey,
).not.toHaveBeenCalled();
expect(
mockOctokit.rest.actions.createOrUpdateEnvironmentSecret,
).not.toHaveBeenCalled();
@@ -141,7 +143,9 @@ describe('github:environment:create examples', () => {
expect(
mockOctokit.rest.actions.createEnvironmentVariable,
).not.toHaveBeenCalled();
expect(mockOctokit.rest.actions.getEnvironmentPublicKey).not.toHaveBeenCalled();
expect(
mockOctokit.rest.actions.getEnvironmentPublicKey,
).not.toHaveBeenCalled();
expect(
mockOctokit.rest.actions.createOrUpdateEnvironmentSecret,
).not.toHaveBeenCalled();
@@ -167,10 +167,11 @@ export function createGithubEnvironmentAction(options: {
}
if (secrets) {
const publicKeyResponse = await client.rest.actions.getEnvironmentPublicKey({
repository_id: repository.data.id,
environment_name: name,
});
const publicKeyResponse =
await client.rest.actions.getEnvironmentPublicKey({
repository_id: repository.data.id,
environment_name: name,
});
await Sodium.ready;
const binaryKey = Sodium.from_base64(