+10
-5
@@ -264,7 +264,8 @@ mod tests {
|
|||||||
"id": 7,
|
"id": 7,
|
||||||
"body": "@test_bot LGTM",
|
"body": "@test_bot LGTM",
|
||||||
"user": {
|
"user": {
|
||||||
"id": 100
|
"id": 100,
|
||||||
|
"login": "test_user"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -328,7 +329,8 @@ mod tests {
|
|||||||
"id": 1,
|
"id": 1,
|
||||||
"body": "@test_bot body",
|
"body": "@test_bot body",
|
||||||
"user": {
|
"user": {
|
||||||
"id": 1
|
"id": 1,
|
||||||
|
"login": "test_user"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -359,7 +361,8 @@ mod tests {
|
|||||||
"id": 12,
|
"id": 12,
|
||||||
"body": "Needs work",
|
"body": "Needs work",
|
||||||
"user": {
|
"user": {
|
||||||
"id": 200
|
"id": 200,
|
||||||
|
"login": "test_user"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -396,7 +399,8 @@ mod tests {
|
|||||||
"id": 1,
|
"id": 1,
|
||||||
"body": "@other_bot do something",
|
"body": "@other_bot do something",
|
||||||
"user": {
|
"user": {
|
||||||
"id": 1
|
"id": 1,
|
||||||
|
"login": "test_user"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -422,7 +426,8 @@ mod tests {
|
|||||||
"id": 1,
|
"id": 1,
|
||||||
"body": "just a comment without bot mention",
|
"body": "just a comment without bot mention",
|
||||||
"user": {
|
"user": {
|
||||||
"id": 1
|
"id": 1,
|
||||||
|
"login": "test_user"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user