diff --git a/src/services/deno_service.ts b/src/services/deno_service.ts index d3905ff..0a0ea7f 100644 --- a/src/services/deno_service.ts +++ b/src/services/deno_service.ts @@ -18,8 +18,8 @@ async function getLatestStdRelease(): Promise { "https://raw.githubusercontent.com/denoland/deno_website2/master/versions.json", ); const versions: { - std: string[], - cli_to_std: {[key: string]: string } + std: string[]; + cli_to_std: { [key: string]: string }; } = await res.json(); // { std: ["0.63.0", ...], cli_to_std: { v1.2.2: "0.63.0", ... } } const latestVersion = versions.std[0]; return latestVersion; diff --git a/tests/update_test.ts b/tests/update_test.ts index 51b97d7..6d8d57e 100644 --- a/tests/update_test.ts +++ b/tests/update_test.ts @@ -246,13 +246,12 @@ Deno.test({ const stdout = new TextDecoder("utf-8").decode(output); const error = await p.stderrOutput(); const stderr = new TextDecoder("utf-8").decode(error); - const assertedOutput = - "Gathering facts...\n" + - "Reading deps.ts to gather your dependencies...\n" + - "Checking if your modules can be updated...\n" + - colours.green("drash was updated from v1.0.0 to v1.2.1") + "\n" + - colours.green("fs was updated from 0.53.0 to 0.63.0") + "\n" + - colours.green("fmt was updated from v0.53.0 to v0.63.0") + "\n"; + const assertedOutput = "Gathering facts...\n" + + "Reading deps.ts to gather your dependencies...\n" + + "Checking if your modules can be updated...\n" + + colours.green("drash was updated from v1.0.0 to v1.2.1") + "\n" + + colours.green("fs was updated from 0.53.0 to 0.63.0") + "\n" + + colours.green("fmt was updated from v0.53.0 to v0.63.0") + "\n"; assertEquals(stdout, assertedOutput); assertEquals(stderr, ""); assertEquals(status.code, 0);