mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 11:54:10 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			402 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			402 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const {auth} = require('./helpers/auth');
 | 
						|
const rq = require('./helpers/request');
 | 
						|
 | 
						|
describe('Initialize', () => {
 | 
						|
  test(
 | 
						|
    'Avoid failure',
 | 
						|
    async () => {
 | 
						|
      expect(true).toBeTruthy();
 | 
						|
    }
 | 
						|
  );
 | 
						|
 | 
						|
  test(
 | 
						|
    'Register admin user',
 | 
						|
    async () => {
 | 
						|
      await rq({
 | 
						|
        url: `/auth/local/register`,
 | 
						|
        method: 'POST',
 | 
						|
        body: auth,
 | 
						|
        json: true
 | 
						|
      });
 | 
						|
    }
 | 
						|
  );
 | 
						|
});
 |