2018-03-06 23:56:01 +00:00
|
|
|
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);
|
2018-04-11 19:13:43 +00:00
|
|
|
}).timeout(3000);
|
2018-03-06 23:56:01 +00:00
|
|
|
});
|
|
|
|
});
|