tests/web/verification.test.js   A
last analyzed

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 25
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 15
mnd 0
bc 0
fnc 4
dl 0
loc 25
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
import { assert } from 'chai';
2
import Test from '../Test';
3
import request from '../request';
4
5
const factory = new Test();
6
7
suite('Verification Files #web');
8
9
before(async function () {
10
    await factory.dropQueue();
11
});
12
13
test('Positive: verify.txt', async function () {
14
    await request
15
        .get('/_verify.txt')
16
        .expect(200)
17
        // .expect('Content-Type', 'application/json; charset=utf-8')
18
        .expect((res) => {
19
            assert.equal(res.text, 'AAA_DOMAIN_VERIFICATION_FILE');
20
        });
21
});
22
23
after(async function () {
24
    await factory.dropQueue();
25
});
26