INNER CODE UNIT · TypeScript
assertReaction
github/branch-deploy · tools/acceptance/index.ts:262
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(
context: ScenarioContext,
result: AcceptanceRunResult
): void {
assert.equal(
context.state.deployments.length,
0,
diagnostics(context, result)
)
}