Skip to content

Commit

Permalink
chore: change assert to with for import attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jan 10, 2024
1 parent 598237d commit b413665
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/toc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import FRESH_VERSIONS from "../versions.json" assert { type: "json" };
import FRESH_VERSIONS from "../versions.json" with { type: "json" };

type RawTableOfContents = Record<
string,
Expand Down
2 changes: 1 addition & 1 deletion tests/cli_update_check_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
assertNotEquals,
assertNotMatch,
} from "./deps.ts";
import versions from "../versions.json" assert { type: "json" };
import versions from "../versions.json" with { type: "json" };
import { CheckFile } from "../src/dev/update_check.ts";
import { WEEK } from "../src/dev/deps.ts";
import { getStdOutput } from "../tests/test_utils.ts";
Expand Down
2 changes: 1 addition & 1 deletion www/main_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assertArrayIncludes, assertEquals } from "$std/assert/mod.ts";
import { withPageName } from "../tests/test_utils.ts";
import { dirname, join } from "$std/path/mod.ts";
import VERSIONS from "../versions.json" assert { type: "json" };
import VERSIONS from "../versions.json" with { type: "json" };
import { createHandler } from "../server.ts";
import manifest from "./fresh.gen.ts";
import config from "./fresh.config.ts";
Expand Down
4 changes: 2 additions & 2 deletions www/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { Handlers, PageProps } from "$fresh/server.ts";
import Counter from "../islands/Counter.tsx";
import LemonDrop from "../islands/LemonDrop.tsx";
import Footer from "../components/Footer.tsx";
import VERSIONS from "../../versions.json" assert { type: "json" };
import VERSIONS from "../../versions.json" with { type: "json" };
import * as FeatureIcons from "../components/FeatureIcons.tsx";
import CopyArea from "../islands/CopyArea.tsx";
import * as Icons from "../components/Icons.tsx";
import Projects from "../components/Projects.tsx";
import projects from "../data/showcase.json" assert { type: "json" };
import projects from "../data/showcase.json" with { type: "json" };
import Header from "../components/Header.tsx";

function isOpenGraphUA(header: string | null): boolean {
Expand Down
2 changes: 1 addition & 1 deletion www/routes/raw.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RouteConfig } from "$fresh/server.ts";
import { Handlers } from "$fresh/server.ts";
import { format, parse } from "$std/semver/mod.ts";
import VERSIONS from "../../versions.json" assert { type: "json" };
import VERSIONS from "../../versions.json" with { type: "json" };
import { extname } from "$std/path/mod.ts";

const BASE_URL = "https://raw.githubusercontent.com/denoland/fresh/";
Expand Down
2 changes: 1 addition & 1 deletion www/routes/showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PageProps } from "$fresh/server.ts";
import Projects, { Project } from "../components/Projects.tsx";
import Header from "../components/Header.tsx";
import Footer from "../components/Footer.tsx";
import projects from "../data/showcase.json" assert { type: "json" };
import projects from "../data/showcase.json" with { type: "json" };

const TITLE = "Showcase | Fresh";
const DESCRIPTION = "Selection of projects that have been built with Fresh.";
Expand Down
2 changes: 1 addition & 1 deletion www/routes/update.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Handlers, PageProps } from "$fresh/server.ts";
import VERSIONS from "../../versions.json" assert { type: "json" };
import VERSIONS from "../../versions.json" with { type: "json" };

export const handler: Handlers = {
GET(req) {
Expand Down

0 comments on commit b413665

Please sign in to comment.