INNER CODE UNIT · TypeScript

assertCommentIncludes

github/branch-deploy · tools/acceptance/index.ts:252

function assertCommentIncludes(
  context: ScenarioContext,
  fragment: string
): void {
  const matched = context.state.comments.some(comment =>
    comment.body.includes(fragment)
  )
  assert.equal(matched, true, diagnostics(context))
}

function assertReaction(context: ScenarioContext, content: string): void {
  const matched = context.state.reactions.some(
    reaction => reaction.content === content
  )
  assert.equal(matched, true, diagnostics(context))
}

function assertNoDeployment(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…