Skip to content

Commit

Permalink
test(write): update individual file write tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blurrah committed Jul 1, 2024
1 parent eddca02 commit 4666432
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ describe("Test parseSource", () => {

const result = await parseSource("MyComponent.tsx", source);
const expected = {
foobar: "foobar",
foodiebar: "foodiebar",
title: "title",
MyComponent: new Set(["foobar", "foodiebar", "title"]),
};
expect(result).toEqual(expected);
});
Expand All @@ -66,10 +64,9 @@ describe("Test parseSource", () => {
`;

const result = await parseSource("MyComponent.tsx", source);

const expected = {
foobar: "foobar",
title: "title",
results: "results",
ProductListing: new Set(["foobar", "title", "results"]),
};
expect(result).toEqual(expected);
});
Expand Down
7 changes: 7 additions & 0 deletions src/write.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { describe, expect, test } from "vitest";

describe("write to file", () => {
test("Hello", () => {
expect(true).toBeTruthy();
});
});

0 comments on commit 4666432

Please sign in to comment.