单元7中对象初始化方法的单元测试

时间:2019-06-17 06:09:24

标签: unit-testing angular7

我需要为以下TS方法编写单元测试用例。我不知道如何在TS中初始化新对象。帮我更新相同的内容。

TS:

 CreateObjectInitialisation()
  {
    this.jobRegistrationCreation.addressDetails = [];
    this.jobRegistrationCreation.customerIds = [];
    this.jobRegistrationCreation.clusterElements = new ClusterElements();
    this.jobRegistrationCreation.statutoryDetails = new StatutoryDetails();
    this.jobRegistrationCreation.contractDetails = new ContractDetails();
  }

规格。 ts: { }

0 个答案:

没有答案