Skip to content

Commit a699a5e

Browse files
committed
test: - Add failing test showing that onCompletion parsing strictly requires one space
1 parent 8ec79c9 commit a699a5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/TaskSerializer/DefaultTaskSerializer.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ describe.each(symbolMap)("DefaultTaskSerializer with '$taskFormat' symbols", ({
174174
const taskDetails = deserialize(onCompletion);
175175
expect(taskDetails).toMatchTaskDetails({ onCompletion: OnCompletion.Delete });
176176
});
177+
178+
it.failing('should allow multiple spaces', () => {
179+
const onCompletion = `${onCompletionSymbol} Keep`;
180+
const taskDetails = deserialize(onCompletion);
181+
expect(taskDetails).toMatchTaskDetails({ onCompletion: OnCompletion.Keep });
182+
});
177183
});
178184

179185
describe('should parse depends on', () => {

0 commit comments

Comments
 (0)