Skip to content

Commit 98ebd2f

Browse files
committed
ContactDto construction simplified
1 parent d8c00e6 commit 98ebd2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/contact-test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ describe('Contact tests', function() {
6767
contactDto.surname = surname;
6868
contactDto.givenName = 'John';
6969
contactDto.gender = 'Male';
70-
contactDto.emailAddresses = [new models.EmailAddress(undefined, undefined, undefined, undefined,
71-
'address@aspose.com')];
70+
const emailAddress = new models.EmailAddress();
71+
emailAddress.address = 'address@aspose.com'
72+
contactDto.emailAddresses = [emailAddress];
7273
contactDto.phoneNumbers = [new models.PhoneNumber(undefined, '+47234325344')];
7374
return contactDto;
7475
}

0 commit comments

Comments
 (0)