Update the user agent for debug log requests
This commit is contained in:
parent
c517e4193b
commit
b159a8d7c7
4 changed files with 14 additions and 22 deletions
|
@ -1,18 +0,0 @@
|
|||
const { assert } = require('chai');
|
||||
const got = require('got');
|
||||
|
||||
const debuglogs = require('../../js/modules/debuglogs');
|
||||
|
||||
describe('debuglogs', () => {
|
||||
describe('upload', () => {
|
||||
it('should upload log content', async () => {
|
||||
const nonce = Math.random()
|
||||
.toString()
|
||||
.slice(2);
|
||||
const url = await debuglogs.upload(nonce);
|
||||
|
||||
const { body } = await got.get(url);
|
||||
assert.equal(nonce, body);
|
||||
}).timeout(3000);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue