mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-04-25 21:02:13 +00:00
11 lines
No EOL
476 B
TypeScript
11 lines
No EOL
476 B
TypeScript
import { injectError } from "@bp/service/runner/runner-util";
|
|
|
|
describe("check runner utilities", () => {
|
|
test("properly inject error message", () => {
|
|
expect(injectError("Original message: {{error}}", "to inject")).toStrictEqual("Original message: to inject");
|
|
});
|
|
|
|
test("missing placeholder in the original message", () => {
|
|
expect(injectError("Original message: {{wrong}}", "to inject")).toStrictEqual("Original message: {{wrong}}");
|
|
});
|
|
}); |