本文整理汇总了TypeScript中schedules/controllers/edit.updateInvestmentDetails函数的典型用法代码示例。如果您正苦于以下问题:TypeScript updateInvestmentDetails函数的具体用法?TypeScript updateInvestmentDetails怎么用?TypeScript updateInvestmentDetails使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了updateInvestmentDetails函数的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it(`should set the transaction amount to zero and the memo to an empty string if the price, quantity and commission are not specified for a Security Investment transaction when the direction is ${scenario.direction}`, (): void => {
scheduleEditController.transaction.direction = scenario.direction;
delete (scheduleEditController.transaction as ScheduledSecurityInvestmentTransaction).quantity;
delete (scheduleEditController.transaction as ScheduledSecurityInvestmentTransaction).price;
delete (scheduleEditController.transaction as ScheduledSecurityInvestmentTransaction).commission;
scheduleEditController.updateInvestmentDetails();
(scheduleEditController.transaction as ScheduledSecurityInvestmentTransaction).amount.should.equal(0);
scheduleEditController.transaction.memo.should.be.empty;
});