Merge pull request #330 from djmitche/issue327

Support an 'end' key in task maps
This commit is contained in:
Dustin J. Mitchell
2022-01-24 10:24:18 -05:00
committed by GitHub
3 changed files with 93 additions and 4 deletions

View File

@@ -241,7 +241,9 @@ mod tests {
..
} = op
{
if property == "modified" || property == "entry" {
// rewrite automatically-created dates to "just-now" for ease
// of testing
if property == "modified" || property == "end" || property == "entry" {
if value.is_some() {
value = Some("just-now".into());
}
@@ -311,6 +313,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(),