Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
import std/testing with the import map
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeg committed Sep 27, 2023
1 parent dba9a61 commit e7fa7d0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion functions/collect_runner_stats_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as mf from "mock-fetch/mod.ts";
import { SlackFunctionTester } from "deno-slack-sdk/mod.ts";
import { assertEquals } from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { assertEquals } from "std/testing/asserts.ts";
import CollectRunnerStatsFunction from "./collect_runner_stats.ts";
import { DatastoreItem } from "deno-slack-api/types.ts";
import RunningDatastore from "../datastores/run_data.ts";
Expand Down
2 changes: 1 addition & 1 deletion functions/collect_team_stats_test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as mf from "mock-fetch/mod.ts";
import { assertEquals } from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { assertEquals } from "std/testing/asserts.ts";
import { SlackFunctionTester } from "deno-slack-sdk/mod.ts";
import { DatastoreItem } from "deno-slack-api/types.ts";
import CollectTeamStatsFunction from "./collect_team_stats.ts";
Expand Down
5 changes: 1 addition & 4 deletions functions/format_leaderboard_test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { SlackFunctionTester } from "deno-slack-sdk/mod.ts";
import {
assertEquals,
assertStringIncludes,
} from "https://deno.land/[email protected]/testing/asserts.ts";
import { assertEquals, assertStringIncludes } from "std/testing/asserts.ts";
import FormatLeaderboardFunction from "./format_leaderboard.ts";

const { createContext } = SlackFunctionTester("format_leaderboard");
Expand Down
2 changes: 1 addition & 1 deletion functions/log_run_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as mf from "mock-fetch/mod.ts";
import { SlackFunctionTester } from "deno-slack-sdk/mod.ts";
import { assertEquals } from "https://deno.land/std@0.153.0/testing/asserts.ts";
import { assertEquals } from "std/testing/asserts.ts";
import LogRunFunction from "./log_run.ts";

// Replaces global fetch with the mocked copy
Expand Down
1 change: 1 addition & 0 deletions import_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"imports": {
"deno-slack-sdk/": "https://deno.land/x/[email protected]/",
"deno-slack-api/": "https://deno.land/x/[email protected]/",
"std/": "https://deno.land/[email protected]/",
"mock-fetch/": "https://deno.land/x/[email protected]/"
}
}

0 comments on commit e7fa7d0

Please sign in to comment.