strapi/test/index.test.js

24 lines
402 B
JavaScript
Raw Normal View History

2018-07-19 14:46:03 +02:00
const {auth} = require('./helpers/auth');
const rq = require('./helpers/request');
2018-06-13 15:31:33 +02:00
describe('Initialize', () => {
2018-05-25 11:49:46 +02:00
test(
2018-06-13 15:31:33 +02:00
'Avoid failure',
2018-05-25 11:49:46 +02:00
async () => {
2018-06-13 15:31:33 +02:00
expect(true).toBeTruthy();
2018-05-25 11:49:46 +02:00
}
);
2018-07-19 14:46:03 +02:00
test(
'Register admin user',
async () => {
await rq({
url: `/auth/local/register`,
method: 'POST',
body: auth,
json: true
});
}
);
2018-05-25 11:49:46 +02:00
});