add testcase

This commit is contained in:
Quan HL
2023-11-24 18:09:48 +07:00
parent f33343ef7b
commit 9d9cad7ccc

View File

@@ -85,6 +85,13 @@ test('client test', async(t) => {
t.ok(result.length === 1 && result[0] === 'dhorton@drachtio.org',
'successfully queried all registered clients');
result = await request.get(`/Accounts/${account_sid}/RegisteredSipUsers?details=true`, {
auth: authAdmin,
json: true,
});
t.ok(result.length === 1 && result[0].name === 'dhorton',
'successfully queried all registered clients');
/* query all entity */
result = await request.get('/Clients', {
auth: authAdmin,