我需要为以下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: { }