Creates a fake branch fixture.
(
branchName: string,
version: string,
opts?: {exceptionalMinor: boolean},
)
| 269 | |
| 270 | /** Creates a fake branch fixture. */ |
| 271 | function create( |
| 272 | branchName: string, |
| 273 | version: string, |
| 274 | opts?: {exceptionalMinor: boolean}, |
| 275 | ): FakeBranch { |
| 276 | return {name: branchName, version, isExceptionalMinor: opts?.exceptionalMinor === true}; |
| 277 | } |
| 278 | |
| 279 | /** Creates a jasmine matcher for matching a release train. */ |
| 280 | function matchesTrain(branchName: string, version: string): jasmine.ObjectContaining<ReleaseTrain> { |
no outgoing calls
no test coverage detected