Skip to content

Commit 5714458

Browse files
committed
move utils.ts to test/ since it's only a test helper
1 parent 571122d commit 5714458

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/html/test/html-recipes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { afterEach, beforeEach, describe, it } from "@std/testing/bdd";
22
import { render, VNode } from "../src/index.ts";
3-
import { MockDoc } from "../src/utils.ts";
3+
import { MockDoc } from "./utils.ts";
44
import {
55
type Cell,
66
createBuilder,

packages/html/test/mockdoc.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it } from "@std/testing/bdd";
2-
import { MockDoc } from "../src/utils.ts";
2+
import { MockDoc } from "./utils.ts";
33
import { assert } from "@std/assert";
44

55
describe("MockDoc", () => {

packages/html/test/render.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { h, UI, VNode } from "@commontools/api";
33
import { render, renderImpl } from "../src/render.ts";
44
import * as assert from "./assert.ts";
55
import { serializableEvent } from "../src/render.ts";
6-
import { MockDoc } from "../src/utils.ts";
6+
import { MockDoc } from "./utils.ts";
77

88
let mock: MockDoc;
99

packages/html/src/utils.ts renamed to packages/html/test/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as htmlparser2 from "htmlparser2";
55
import * as domhandler from "domhandler";
66
import * as domserializer from "dom-serializer";
7-
import { RenderOptions, styleObjectToCssString } from "./render.ts";
7+
import { RenderOptions, styleObjectToCssString } from "../src/render.ts";
88

99
function renderOptionsFromDoc(document: globalThis.Document): RenderOptions {
1010
return {

0 commit comments

Comments
 (0)