mirror of
https://code.forgejo.org/actions/git-backporting.git
synced 2025-06-10 23:34:30 -04: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}}");
|
|
});
|
|
}); |