Skip to content

Commit

Permalink
deno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Bebbington committed Aug 1, 2020
1 parent 9ed3dc3 commit 7c84182
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/services/deno_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ async function getLatestStdRelease(): Promise<string> {
"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;
Expand Down
13 changes: 6 additions & 7 deletions tests/update_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7c84182

Please sign in to comment.