Support an 'end' key in task maps

This definition matches how TaskWarrior uses the same key.
This commit is contained in:
Dustin J. Mitchell
2022-01-06 01:58:22 +00:00
parent d6efad06ee
commit b663745892
3 changed files with 92 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ mod tests {
..
} = op
{
if property == "modified" {
if property == "modified" || property == "end" {
if value.is_some() {
value = Some("just-now".into());
}
@@ -291,6 +291,13 @@ mod tests {
value: Some("past tense".into()),
timestamp: now,
},
ReplicaOp::Update {
uuid: t.get_uuid(),
property: "end".into(),
old_value: None,
value: Some("just-now".into()),
timestamp: now,
},
ReplicaOp::Update {
uuid: t.get_uuid(),
property: "status".into(),