Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

test: normalize Pake config path assertion

Tw93b5d74772d5ac
diff --git a/tests/unit/base-builder.test.ts b/tests/unit/base-builder.test.ts
index ffb0a886..84db127e 100644
--- a/tests/unit/base-builder.test.ts
+++ b/tests/unit/base-builder.test.ts
@@ -190,8 +190,9 @@ describe('BaseBuilder guards', () => {
} as any);
const command = (builder as any).getBuildCommand('pnpm');
+ const normalizedCommand = command.replace(/\\/g, '/');
- expect(command).toContain('src-tauri/.pake/tauri.conf.json');
+ expect(normalizedCommand).toContain('src-tauri/.pake/tauri.conf.json');
expect(command).toContain('--features cli-build');
});