forked from mtusi2026/mtusi2026lab2
feat: lab2 done
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
meta {
|
||||
name: List my chats
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{baseUrl}}/api/v1/chats?limit=100
|
||||
body: none
|
||||
auth: none
|
||||
}
|
||||
|
||||
headers {
|
||||
Authorization: Bearer {{token}}
|
||||
}
|
||||
|
||||
docs {
|
||||
Список только доступных чатов, сортировка по (created_at, id), keyset-cursor.
|
||||
}
|
||||
|
||||
tests {
|
||||
test("200 ok", function() {
|
||||
expect(res.status).to.equal(200);
|
||||
});
|
||||
|
||||
test("созданный чат виден", function() {
|
||||
const ids = res.body.items.map(function(item) { return item.id; });
|
||||
expect(ids).to.include(bru.getVar("chatId"));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user