Skip to content

Commit d181496

Browse files
committed
chats: add failing e2e test to expect the actual latest messages
1 parent b7d5fce commit d181496

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

chats/rdflib/src/e2e-tests/read-chat.e2e.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ describe("read a chat", () => {
3131
date: new Date("2024-07-01T17:47:14Z"),
3232
authorWebId: "http://localhost:3000/alice/profile/card#me",
3333
},
34+
{
35+
uri: "http://localhost:3456/chats/eBIszJ/2024/07/01/chat.ttl#Msg1723225634154",
36+
text: "Let me know, if you need anything.",
37+
date: new Date("2024-07-01T17:48:24Z"),
38+
authorWebId: "http://localhost:3000/alice/profile/card#me",
39+
},
3440
]);
3541
});
3642
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
</chats/eBIszJ/index.ttl#this>
2+
<http://www.w3.org/2005/01/wf/flow#message> <#Msg1723225345345223> .
3+
4+
<#Msg1723225345345223>
5+
<http://rdfs.org/sioc/ns#content> "This is an older message, that should not be read initially." ;
6+
<http://purl.org/dc/terms/created> "2024-06-30T17:47:14Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
7+
<http://xmlns.com/foaf/0.1/maker> <http://localhost:3000/alice/profile/card#me> ;
8+
<https://w3id.org/security#proofValue>
9+
"3a3609ca321d62f2aa1f6e38dbc05de037ff90b11103df392e8d01ab0254678defcb8a48d45a1a53300159e15f82a6367a1eff08f82c5901b2f944f3e7d17be2" .
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
</chats/eBIszJ/index.ttl#this>
2-
<http://www.w3.org/2005/01/wf/flow#message> <#Msg1723225634153> .
2+
<http://www.w3.org/2005/01/wf/flow#message> <#Msg1723225634153>, <#Msg1723225634154> .
33

44
<#Msg1723225634153>
55
<http://rdfs.org/sioc/ns#content> "Hello visitor, welcome to my public chat lobby!" ;
66
<http://purl.org/dc/terms/created> "2024-07-01T17:47:14Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
77
<http://xmlns.com/foaf/0.1/maker> <http://localhost:3000/alice/profile/card#me> ;
88
<https://w3id.org/security#proofValue>
99
"3a3609ca321d62f2aa1f6e38dbc05de037ff90b11103df392e8d01ab0254678defcb8a48d45a1a53300159e15f82a6367a1eff08f82c5901b2f944f3e7d17be2" .
10+
11+
12+
<#Msg1723225634154>
13+
<http://rdfs.org/sioc/ns#content> "Let me know, if you need anything." ;
14+
<http://purl.org/dc/terms/created> "2024-07-01T17:48:24Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ;
15+
<http://xmlns.com/foaf/0.1/maker> <http://localhost:3000/alice/profile/card#me> ;
16+
<https://w3id.org/security#proofValue>
17+
"3a3609ca321d62f2aa1f6e38dbc05de037ff90b11103df392e8d01ab0254678defcb8a48d45a1a53300159e15f82a6367a1eff08f82c5901b2f944f3e7d17be2" .

0 commit comments

Comments
 (0)