Skip to content

Commit

Permalink
chore: upgrade deno std to 0.128.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Mar 3, 2022
1 parent e436fc0 commit c494733
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions deno/basic_test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { assertEquals } from "https://deno.land/std@0.89.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.128.0/testing/asserts.ts";
import { Project } from "./mod.ts";

// todo: Eventually all tests run for the node package should also be run for Deno
Deno.test("ts-morph basic tests", () => {
const project = new Project({ useInMemoryFileSystem: true });
const sourceFile = project.createSourceFile("test.ts", "class T {\n}");
sourceFile.addClass({
name: "Other",
});
assertEquals(sourceFile.getText(), `class T {\n}\n\nclass Other {\n}\n`);
const project = new Project({ useInMemoryFileSystem: true });
const sourceFile = project.createSourceFile("test.ts", "class T {\n}");
sourceFile.addClass({
name: "Other",
});
assertEquals(sourceFile.getText(), `class T {\n}\n\nclass Other {\n}\n`);
});
8 changes: 4 additions & 4 deletions deno/bootstrap/basic_test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { assertEquals } from "https://deno.land/std@0.89.0/testing/asserts.ts";
import { assertEquals } from "https://deno.land/std@0.128.0/testing/asserts.ts";
import { createProjectSync } from "./mod.ts";

// todo: Eventually all tests run for the node package should also be run for Deno
Deno.test("bootstrap general tests", () => {
const project = createProjectSync({ useInMemoryFileSystem: true });
const sourceFile = project.createSourceFile("test.ts", "class T {\n}\n");
assertEquals(sourceFile.statements[0].getText(), `class T {\n}`);
const project = createProjectSync({ useInMemoryFileSystem: true });
const sourceFile = project.createSourceFile("test.ts", "class T {\n}\n");
assertEquals(sourceFile.statements[0].getText(), `class T {\n}`);
});
6 changes: 3 additions & 3 deletions deno/common/DenoRuntime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ensureDir, ensureDirSync } from "https://deno.land/std@0.106.0/fs/ensure_dir.ts";
import { expandGlob, expandGlobSync } from "https://deno.land/std@0.106.0/fs/expand_glob.ts";
import * as stdPath from "https://deno.land/std@0.106.0/path/mod.ts";
import { ensureDir, ensureDirSync } from "https://deno.land/std@0.128.0/fs/ensure_dir.ts";
import { expandGlob, expandGlobSync } from "https://deno.land/std@0.128.0/fs/expand_glob.ts";
import * as stdPath from "https://deno.land/std@0.128.0/path/mod.ts";

export class DenoRuntime {
fs = new DenoRuntimeFileSystem();
Expand Down
6 changes: 3 additions & 3 deletions packages/common/src/runtimes/DenoRuntime.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @ts-ignore
import { ensureDir, ensureDirSync } from "https://deno.land/std@0.106.0/fs/ensure_dir.ts";
import { ensureDir, ensureDirSync } from "https://deno.land/std@0.128.0/fs/ensure_dir.ts";
// @ts-ignore
import { expandGlob, expandGlobSync } from "https://deno.land/std@0.106.0/fs/expand_glob.ts";
import { expandGlob, expandGlobSync } from "https://deno.land/std@0.128.0/fs/expand_glob.ts";
// @ts-ignore
import * as stdPath from "https://deno.land/std@0.106.0/path/mod.ts";
import * as stdPath from "https://deno.land/std@0.128.0/path/mod.ts";

declare var Deno: any;

Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/deps.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as path from "https://deno.land/std@0.114.0/path/mod.ts";
export * as path from "https://deno.land/std@0.128.0/path/mod.ts";
export * as tsMorph from "https://deno.land/x/ts_morph@13.0.2/mod.ts";

0 comments on commit c494733

Please sign in to comment.