You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			463 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			463 B
		
	
	
	
		
			JavaScript
		
	
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);
 | 
						|
  });
 | 
						|
});
 |