本文整理汇总了TypeScript中@oclif/test.expect函数的典型用法代码示例。如果您正苦于以下问题:TypeScript expect函数的具体用法?TypeScript expect怎么用?TypeScript expect使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了expect函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: expect
.it('# maps buildpack names', ctx => {
expect(ctx.stderr).to.equal('')
expect(ctx.stdout).to.equal(
`Buildpack added. Next release on example will use hone/test.
Run git push heroku master to create a new release using this buildpack.
`)
})
示例2: expect
.it('# with one existing buildpack successfully overwrites an existing buildpack URL at index', ctx => {
expect(ctx.stderr).to.equal('')
expect(ctx.stdout).to.equal(
`Buildpack set. Next release on example will use https://github.com/heroku/heroku-buildpack-ruby.
Run git push heroku master to create a new release using this buildpack.
`)
})
示例3: expect
.it('# does not map buildpack s3 to names', ctx => {
expect(ctx.stderr).to.equal('')
expect(ctx.stdout).to.equal(
`=== example Buildpack URL
https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/ruby.tgz
`)
})
示例4: expect
.it('# with two buildpacks successfully removes url', ctx => {
expect(ctx.stderr).to.equal('')
expect(ctx.stdout).to.equal(
`Buildpack removed. Next release on example will use https://github.com/heroku/heroku-buildpack-java.
Run git push heroku master to create a new release using this buildpack.
`)
})