Skip to content

Commit 7ed67f7

Browse files
committed
test: - Add failing test for #3179
1 parent 595785a commit 7ed67f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/TaskSerializer/DefaultTaskSerializer.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,15 @@ describe.each(symbolMap)("DefaultTaskSerializer with '$taskFormat' symbols", ({
122122
expect(taskDetails).toMatchTaskDetails({ ['scheduledDate']: moment('2021-06-20', 'YYYY-MM-DD') });
123123
});
124124

125+
it.failing('should parse a scheduledDate - with Variation Selector', () => {
126+
// This test showed the existence of https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3179
127+
const input = '⏳️ 2024-11-18';
128+
expect(hasVariantSelector16(input)).toBe(true);
129+
130+
const taskDetails = deserialize(input);
131+
expect(taskDetails).toMatchTaskDetails({ ['scheduledDate']: moment('2024-11-18', 'YYYY-MM-DD') });
132+
});
133+
125134
it('should parse a dueDate - with non-standard emoji 1', () => {
126135
const taskDetails = deserialize('📆 2021-06-20');
127136
expect(taskDetails).toMatchTaskDetails({ ['dueDate']: moment('2021-06-20', 'YYYY-MM-DD') });

0 commit comments

Comments
 (0)