Update the user agent for debug log requests

This commit is contained in:
Scott Nonnenberg 2018-07-18 20:00:10 -07:00
parent c517e4193b
commit b159a8d7c7
4 changed files with 14 additions and 22 deletions

View file

@ -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);
});
});