import { BigNumber } from "bignumber.js" ; import { DEFAULT_REGISTER_TERM_START_ARGS , RegisterTermStartScenario } from "./" ; const defaultArgs = DEFAULT_REGISTER_TERM_START_ARGS ; defaultArgs . succeeds = false ; export const UNSUCCESSFUL_REGISTER_TERM_START_SCENARIOS = [ { description : "when invoked outside of the debt kernel" , ... defaultArgs , reverts : true , invokedByDebtKernel : false , } , { description : "when the amortization unit type is 5" , ... defaultArgs , reverts : true , amortizationUnitType : new BigNumber ( 5 ) , } , { description : "when the principal amount is 0" , ... defaultArgs , principalAmount : new BigNumber ( 0 ) , } , { description : "when there is no token at the given token index in the terms contract parameters" , ... defaultArgs , reverts : true , principalTokenInRegistry : false , } , ] ;