refs #6915 test_master24_8 #2067
|
@ -13,16 +13,8 @@ describe('Client Create', () => {
|
||||||
businessTypeFk: 'florist',
|
businessTypeFk: 'florist',
|
||||||
provinceFk: 1
|
provinceFk: 1
|
||||||
};
|
};
|
||||||
const newAccount2 = {
|
const newAccountWithoutEmail = JSON.parse(JSON.stringify(newAccount));
|
||||||
userName: 'Deadpool',
|
delete newAccountWithoutEmail.email;
|
||||||
fi: '16195279J',
|
|
||||||
name: 'Wade',
|
|
||||||
socialName: 'DEADPOOL MARVEL',
|
|
||||||
street: 'WALL STREET',
|
|
||||||
city: 'New York',
|
|
||||||
businessTypeFk: 'florist',
|
|
||||||
provinceFk: 1
|
|
||||||
};
|
|
||||||
|
|
||||||
beforeAll(async() => {
|
beforeAll(async() => {
|
||||||
const activeCtx = {
|
const activeCtx = {
|
||||||
|
@ -64,7 +56,7 @@ describe('Client Create', () => {
|
||||||
let error;
|
let error;
|
||||||
try {
|
try {
|
||||||
const options = {transaction: tx};
|
const options = {transaction: tx};
|
||||||
await models.Client.createWithUser(newAccount2, options);
|
await models.Client.createWithUser(newAccountWithoutEmail, options);
|
||||||
|
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue