Merge pull request #330 from djmitche/issue327
Support an 'end' key in task maps
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user