当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript fees.resolveGetIssueFeeRangeGroup函数代码示例

本文整理汇总了TypeScript中test/http-mocks/fees.resolveGetIssueFeeRangeGroup函数的典型用法代码示例。如果您正苦于以下问题:TypeScript resolveGetIssueFeeRangeGroup函数的具体用法?TypeScript resolveGetIssueFeeRangeGroup怎么用?TypeScript resolveGetIssueFeeRangeGroup使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了resolveGetIssueFeeRangeGroup函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: it

      it('should render page when everything is fine', async () => {
        draftStoreServiceMock.resolveFind('response')
        claimStoreServiceMock.resolveRetrieveClaimByExternalId()
        feesServiceMock.resolveGetIssueFeeRangeGroup()

        await request(app)
          .get(pagePath)
          .set('Cookie', `${cookieName}=ABC`)
          .expect(res => expect(res).to.be.successful.withText('Post your response'))
      })
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:10,代码来源:send-your-response-by-email.ts

示例2: it

      it('should render page when everything is fine', async () => {
        draftStoreServiceMock.resolveFind('claim')
        feesServiceMock.resolveCalculateIssueFee()
        feesServiceMock.resolveCalculateHearingFee()
        feesServiceMock.resolveGetIssueFeeRangeGroup()
        feesServiceMock.resolveGetHearingFeeRangeGroup()

        await request(app)
          .get(pagePath)
          .set('Cookie', `${cookieName}=ABC`)
          .expect(res => expect(res).to.be.successful.withText(pageContent))
      })
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:12,代码来源:total.ts

示例3: next

    },
    ccjType: CountyCourtJudgmentType.DETERMINATION
  },
  settlementReachedAt: '2017-08-10T15:27:32.917',
  claimantResponse: {
    type: ClaimantResponseType.ACCEPTATION,
    amountPaid: 0
  },
  reDeterminationRequestedAt: '2018-12-01T12:34:56.789'
}).persist()

claimStoreMock.mockCalculateInterestRate(0).persist()
claimStoreMock.resolveRetrieveUserRoles('cmc-new-features-consent-given').persist()
feesMock.resolveCalculateIssueFee().persist()
feesMock.resolveCalculateHearingFee().persist()
feesMock.resolveGetIssueFeeRangeGroup().persist()
feesMock.resolveGetHearingFeeRangeGroup().persist()
courtFinderMock.resolveFind().persist()

const justForwardRequestHandler = {
  requestHandler: (req: express.Request, res: express.Response, next: express.NextFunction): void => {
    next()
  }
}

mock('first-contact/guards/claimReferenceMatchesGuard', {
  ClaimReferenceMatchesGuard: {
    requestHandler: (req: express.Request, res: express.Response, next: express.NextFunction): void => {
      res.locals.claim = new Claim().deserialize(claimStoreMock.sampleClaimObj)
      next()
    }
开发者ID:hmcts,项目名称:cmc-citizen-frontend,代码行数:31,代码来源:mocks.ts


注:本文中的test/http-mocks/fees.resolveGetIssueFeeRangeGroup函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。