Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 25 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 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 |