test: remove faker

This commit is contained in:
Elliot DeNolf
2020-10-14 15:07:41 -04:00
parent c5aba71aa7
commit f0bc59dd0c
5 changed files with 18 additions and 26 deletions

View File

@@ -1,5 +1,4 @@
require('isomorphic-fetch');
const faker = require('faker');
const { email, password } = require('../../tests/api/credentials');
/**
@@ -99,7 +98,7 @@ describe('Users REST API', () => {
it('should allow a user to be created', async () => {
const response = await fetch(`${url}/api/admins`, {
body: JSON.stringify({
email: `${faker.name.firstName()}@test.com`,
email: 'name@test.com',
password,
roles: ['editor'],
}),