forked from mirrors/probot
fix: remove redundant string in deprecation warning (#1336)
Signed-off-by: Frankzhaopku <syzhao1988@126.com>
This commit is contained in:
parent
86c19733ca
commit
e0760b0ef9
|
@ -248,7 +248,7 @@ export class Probot {
|
|||
public get webhook(): Webhooks {
|
||||
this.log.warn(
|
||||
new Deprecation(
|
||||
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead instead`
|
||||
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead`
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ describe("Deprecations", () => {
|
|||
|
||||
expect(output.length).toEqual(1);
|
||||
expect(output[0].msg).toContain(
|
||||
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead instead`
|
||||
`[probot] "probot.webhook" is deprecated. Use "probot.webhooks" instead`
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue