1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | Object.defineProperty(exports, "__esModule", { value: true });
|
19 | const assert = require("assert");
|
20 | const mocha_1 = require("mocha");
|
21 | const index_1 = require("../apis/index");
|
22 | mocha_1.describe('#createMonitoringApiResult()', async function () {
|
23 | mocha_1.describe('Object', async function () {
|
24 | mocha_1.it('with app information (default)', async function () {
|
25 | const OBJ = await index_1.createMonitoringApiResult();
|
26 | assert.ok(typeof OBJ === 'object');
|
27 | assert.ok(typeof OBJ.version === 'object');
|
28 | });
|
29 | mocha_1.it('with app information (explicit)', async function () {
|
30 | const OBJ = await index_1.createMonitoringApiResult({
|
31 | withAppVersion: true,
|
32 | });
|
33 | assert.ok(typeof OBJ === 'object');
|
34 | assert.ok(typeof OBJ.version === 'object');
|
35 | });
|
36 | mocha_1.it('without app information', async function () {
|
37 | const OBJ = await index_1.createMonitoringApiResult({
|
38 | withAppVersion: false,
|
39 | });
|
40 | assert.ok(typeof OBJ === 'object');
|
41 | assert.ok(typeof OBJ.version === 'undefined');
|
42 | });
|
43 | });
|
44 | });
|
45 |
|
\ | No newline at end of file |