Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervhaastert committed May 18, 2020
1 parent ef49bbf commit e3b26fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mod.ts
Expand Up @@ -10,4 +10,4 @@ export const VERSION = "v0.6.0";
export const RELEASE_URL =
`https://github.com/manyuanrong/deno_mongo/releases/download/${VERSION}`;

await init();
await init(RELEASE_URL);
3 changes: 2 additions & 1 deletion test.ts
@@ -1,5 +1,6 @@
import { cargoBuild } from "./build.ts";
import { init, MongoClient } from "./mod.ts";
import { init } from "./ts/util.ts";
import { MongoClient } from "./ts/client.ts";
import { assert, assertEquals, exists } from "./test.deps.ts";
import { ObjectId } from "./ts/types.ts";

Expand Down
3 changes: 1 addition & 2 deletions ts/util.ts
@@ -1,5 +1,4 @@
import { prepare } from "../deps.ts";
import { RELEASE_URL } from "../mod.ts";
import { CommandType } from "./types.ts";

// @ts-ignore
Expand Down Expand Up @@ -29,7 +28,7 @@ interface Command {
command_id?: number;
}

export async function init(releaseUrl = RELEASE_URL) {
export async function init(releaseUrl: string) {
const options = {
name: PLUGIN_NAME,
urls: {
Expand Down

0 comments on commit e3b26fa

Please sign in to comment.