We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32fcb33 commit 1fea4beCopy full SHA for 1fea4be
test/client.spec.ts
@@ -61,11 +61,12 @@ describe("client", () => {
61
62
it("getMessageContent", () => {
63
const s = client.getMessageContent("test_message_id");
64
- getStreamData(s)
65
- .then((data: any) => {
66
- equal(data.headers.authorization, "Bearer test_channel_access_token");
67
- equal(data.path, "/message/test_message_id/content");
68
- equal(data.method, "GET");
+ return getStreamData(s)
+ .then((data) => {
+ const res = JSON.parse(data);
+ equal(res.headers.authorization, "Bearer test_channel_access_token");
+ equal(res.path, "/message/test_message_id/content");
69
+ equal(res.method, "GET");
70
});
71
72
0 commit comments