mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-18 17:34:21 +00:00
fix failing testcase
This commit is contained in:
1 parent
4f486b2c0a
commit
522469ca89
2 files changed
+6
-5
No files matched your search
@@ -106,17 +106,19 @@ test("test create-call call-hook basic authentication", async (t) => {
|
||||
await p;
|
||||
|
||||
let obj = await getJSON(`http:127.0.0.1:3100/lastRequest/${from}`);
|
||||
console.log(obj);
|
||||
t.ok(
|
||||
(obj.headers.Authorization === "Basic dXNlcm5hbWU6cGFzc3dvcmQ="),
|
||||
obj.headers.Authorization === "Basic dXNlcm5hbWU6cGFzc3dvcmQ=",
|
||||
"create-call: call-hook contains basic authentication header"
|
||||
);
|
||||
t.ok(
|
||||
(obj.customerData.customer === 'acme'),
|
||||
obj.body.customerdata.customer === "acme",
|
||||
"create-call: metadata is working"
|
||||
);
|
||||
obj = await getJSON(`http:127.0.0.1:3100/lastRequest/${from}_callStatus`);
|
||||
console.log(obj);
|
||||
t.ok(
|
||||
(obj.customerData.customer === 'acme'),
|
||||
obj.body.customerData.customer === "acme",
|
||||
"create-call: metadata is working"
|
||||
);
|
||||
disconnect();
|
||||
|
||||
Reference in new issue
Block a user