Skip to content

Commit 0d1dd3a

Browse files
committed
refactor: Rename loadFixture to loadTestCaseFixture
1 parent 5d85359 commit 0d1dd3a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/cursorless-org/src/pages/component-sheet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "fs";
33
import path from "path";
44
import Head from "next/head";
55

6-
import { loadFixture } from "@cursorless/test-case-component";
6+
import { loadTestCaseFixture } from "@cursorless/test-case-component";
77
import { TestCaseComponentPage } from "@cursorless/test-case-component";
88
import type { TestCaseFixture } from "@cursorless/common";
99
import { testSelectedFiles } from "./allowList";
@@ -55,7 +55,7 @@ export async function getStaticProps() {
5555
[...dataActions, ...dataDecorations].map(async (val) => {
5656
try {
5757
// const upgraded = upgrade(data);
58-
const fixture = await loadFixture(val);
58+
const fixture = await loadTestCaseFixture(val);
5959
return { ...fixture, raw: val };
6060
} catch (err) {
6161
console.error(err);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./components/TestCaseComponentPage";
2-
export * from "./loadFixture";
2+
export * from "./loadTestCaseFixture";

packages/test-case-component/src/loadFixture.ts renamed to packages/test-case-component/src/loadTestCaseFixture.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface loadFixtureProps extends TestCaseFixture {
3535
finalState: TestCaseSnapshot;
3636
}
3737

38-
export async function loadFixture(data: loadFixtureProps) {
38+
export async function loadTestCaseFixture(data: loadFixtureProps) {
3939
try {
4040
const before = await getBefore({
4141
stateName: "initialState",

0 commit comments

Comments
 (0)