Skip to content

Commit 66279d3

Browse files
committed
fix tests
1 parent 7edc394 commit 66279d3

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

apps/desktop/src/store/tinybase/persister/human/persister.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ describe("createHumanPersister", () => {
116116

117117
describe("save", () => {
118118
test("saves humans to markdown files via frontmatter plugin", async () => {
119-
const { mkdir } = await import("@tauri-apps/plugin-fs");
120119
const { commands: fsSyncCommands } = await import("@hypr/plugin-fs-sync");
121120

122121
store.setRow("humans", TEST_UUID_1, {
@@ -133,10 +132,6 @@ describe("createHumanPersister", () => {
133132
const persister = createHumanPersister(store);
134133
await persister.save();
135134

136-
expect(mkdir).toHaveBeenCalledWith(`${MOCK_DATA_DIR}/humans`, {
137-
recursive: true,
138-
});
139-
140135
expect(fsSyncCommands.writeDocumentBatch).toHaveBeenCalledWith([
141136
[
142137
{

apps/desktop/src/store/tinybase/persister/organization/persister.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ describe("createOrganizationPersister", () => {
103103

104104
describe("save", () => {
105105
test("saves organizations to markdown files via frontmatter plugin", async () => {
106-
const { mkdir } = await import("@tauri-apps/plugin-fs");
107106
const { commands: fsSyncCommands } = await import("@hypr/plugin-fs-sync");
108107

109108
store.setRow("organizations", TEST_UUID_1, {
@@ -115,10 +114,6 @@ describe("createOrganizationPersister", () => {
115114
const persister = createOrganizationPersister(store);
116115
await persister.save();
117116

118-
expect(mkdir).toHaveBeenCalledWith(`${MOCK_DATA_DIR}/organizations`, {
119-
recursive: true,
120-
});
121-
122117
expect(fsSyncCommands.writeDocumentBatch).toHaveBeenCalledWith([
123118
[
124119
{

apps/desktop/src/store/tinybase/persister/prompts/persister.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ describe("createPromptPersister", () => {
7979

8080
describe("save", () => {
8181
test("saves prompts to markdown files via frontmatter plugin", async () => {
82-
const { mkdir } = await import("@tauri-apps/plugin-fs");
8382
const { commands: fsSyncCommands } = await import("@hypr/plugin-fs-sync");
8483

8584
store.setRow("prompts", TEST_UUID_1, {
@@ -92,10 +91,6 @@ describe("createPromptPersister", () => {
9291
const persister = createPromptPersister(store);
9392
await persister.save();
9493

95-
expect(mkdir).toHaveBeenCalledWith(`${MOCK_DATA_DIR}/prompts`, {
96-
recursive: true,
97-
});
98-
9994
expect(fsSyncCommands.writeDocumentBatch).toHaveBeenCalledWith([
10095
[
10196
{

0 commit comments

Comments
 (0)