diff --git a/functions/collect_runner_stats_test.ts b/functions/collect_runner_stats_test.ts index 9e22ba3..458bcb5 100644 --- a/functions/collect_runner_stats_test.ts +++ b/functions/collect_runner_stats_test.ts @@ -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"; diff --git a/functions/collect_team_stats_test.ts b/functions/collect_team_stats_test.ts index 3a6092d..d7f26a9 100644 --- a/functions/collect_team_stats_test.ts +++ b/functions/collect_team_stats_test.ts @@ -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"; diff --git a/functions/format_leaderboard_test.ts b/functions/format_leaderboard_test.ts index 6955e1b..ecd8d07 100644 --- a/functions/format_leaderboard_test.ts +++ b/functions/format_leaderboard_test.ts @@ -1,8 +1,5 @@ import { SlackFunctionTester } from "deno-slack-sdk/mod.ts"; -import { - assertEquals, - assertStringIncludes, -} from "https://deno.land/std@0.153.0/testing/asserts.ts"; +import { assertEquals, assertStringIncludes } from "std/testing/asserts.ts"; import FormatLeaderboardFunction from "./format_leaderboard.ts"; const { createContext } = SlackFunctionTester("format_leaderboard"); diff --git a/functions/log_run_test.ts b/functions/log_run_test.ts index 8e7049e..fb67302 100644 --- a/functions/log_run_test.ts +++ b/functions/log_run_test.ts @@ -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 diff --git a/import_map.json b/import_map.json index 4e38fdb..df0a5d4 100644 --- a/import_map.json +++ b/import_map.json @@ -2,6 +2,7 @@ "imports": { "deno-slack-sdk/": "https://deno.land/x/deno_slack_sdk@2.2.0/", "deno-slack-api/": "https://deno.land/x/deno_slack_api@2.1.1/", + "std/": "https://deno.land/std@0.183.0/", "mock-fetch/": "https://deno.land/x/mock_fetch@0.3.0/" } }