Skip to content

Commit

Permalink
test: - Add failing test for #3179
Browse files Browse the repository at this point in the history
  • Loading branch information
claremacrae committed Nov 21, 2024
1 parent 595785a commit 7ed67f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/TaskSerializer/DefaultTaskSerializer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,15 @@ describe.each(symbolMap)("DefaultTaskSerializer with '$taskFormat' symbols", ({
expect(taskDetails).toMatchTaskDetails({ ['scheduledDate']: moment('2021-06-20', 'YYYY-MM-DD') });
});

it.failing('should parse a scheduledDate - with Variation Selector', () => {
// This test showed the existence of https://github.com/obsidian-tasks-group/obsidian-tasks/issues/3179
const input = '⏳️ 2024-11-18';
expect(hasVariantSelector16(input)).toBe(true);

const taskDetails = deserialize(input);
expect(taskDetails).toMatchTaskDetails({ ['scheduledDate']: moment('2024-11-18', 'YYYY-MM-DD') });
});

it('should parse a dueDate - with non-standard emoji 1', () => {
const taskDetails = deserialize('📆 2021-06-20');
expect(taskDetails).toMatchTaskDetails({ ['dueDate']: moment('2021-06-20', 'YYYY-MM-DD') });
Expand Down

0 comments on commit 7ed67f7

Please sign in to comment.