Skip to content

Commit 1dc0c5e

Browse files
committed
test: assert the exact expanded home path
1 parent a4efad5 commit 1dc0c5e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/host-kit/src/session-paths.test.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { expandSessionPath } from './session-paths.ts';
77

88
test('expandSessionPath resolves tilde, relative-with-cwd, and absolute paths', () => {
99
const homePath = expandSessionPath('~/flows/replay.ad');
10-
assert.equal(homePath.startsWith(os.homedir()), true);
11-
assert.equal(homePath.endsWith(path.join('flows', 'replay.ad')), true);
10+
assert.equal(homePath, path.join(os.homedir(), 'flows', 'replay.ad'));
1211

1312
const relativePath = expandSessionPath('workflows/replay.ad', '/tmp/agent-device-cwd');
1413
assert.equal(relativePath, path.resolve('/tmp/agent-device-cwd', 'workflows/replay.ad'));

0 commit comments

Comments
 (0)