Skip to content

Commit

Permalink
deno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Bebbington committed Jul 14, 2020
1 parent 8e902aa commit 69f72f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/services/module_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class ModuleService {
const importVersionRegex = /(v)?[0-9].+[0-9].+[0-9]/g;
const importVersionRegexResult = dep.match(importVersionRegex);
const importedVersion: string = importVersionRegexResult !== null &&
importVersionRegexResult.length > 0
importVersionRegexResult.length > 0
? importVersionRegexResult[0]
: "";
if (!importedVersion) {
Expand Down
11 changes: 5 additions & 6 deletions tests/update_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ Deno.test({
const stdout = new TextDecoder("utf-8").decode(output);
const error = await p.stderrOutput();
const stderr = new TextDecoder("utf-8").decode(error);
const expected =
"Gathering facts...\n" +
"Reading deps.ts to gather your dependencies...\n" +
"Checking if your modules can be updated...\n" +
colours.green("fs was updated from 0.53.0 to 0.61.0") + "\n"
const expected = "Gathering facts...\n" +
"Reading deps.ts to gather your dependencies...\n" +
"Checking if your modules can be updated...\n" +
colours.green("fs was updated from 0.53.0 to 0.61.0") + "\n";
assertEquals(
stdout,
expected
expected,
);
assertEquals(stderr, "");
assertEquals(status.code, 0);
Expand Down

0 comments on commit 69f72f5

Please sign in to comment.