Skip to content

Commit 219a12b

Browse files
committed
test: trim duplicate recovery quoting coverage
1 parent 9379944 commit 219a12b

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

src/daemon/__tests__/request-lock-policy.test.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -99,33 +99,6 @@ test('reject lock policy explains fresh-session recovery commands', () => {
9999
);
100100
});
101101

102-
test('reject lock policy quotes unsafe fresh session names in recovery commands', () => {
103-
assert.throws(
104-
() =>
105-
applyRequestLockPolicy({
106-
token: 'token',
107-
session: "qa ios; echo 'oops'",
108-
command: 'snapshot',
109-
positionals: [],
110-
flags: {
111-
device: 'Pixel 9',
112-
},
113-
meta: {
114-
lockPolicy: 'reject',
115-
lockPlatform: 'ios',
116-
},
117-
}),
118-
(error) => {
119-
assert.ok(error instanceof AppError);
120-
assert.match(
121-
error.details?.hint ?? '',
122-
/agent-device open <app> --session 'qa ios; echo '\\''oops'\\''' --platform ios/i,
123-
);
124-
return true;
125-
},
126-
);
127-
});
128-
129102
test('allows open to choose a fresh-session target under request lock policy', () => {
130103
const req = applyRequestLockPolicy({
131104
token: 'token',

0 commit comments

Comments
 (0)