fix: persistencia dinamica em configs e filtro de tabelas ativas status publish
This commit is contained in:
@@ -3,7 +3,7 @@ import { TelegramNotifier } from "../../src/infrastructure/telegram/telegram-not
|
||||
|
||||
describe("TelegramNotifier", () => {
|
||||
let notifier: TelegramNotifier;
|
||||
let fetchMock: typeof fetch;
|
||||
let fetchMock: any;
|
||||
|
||||
beforeEach(() => {
|
||||
fetchMock = async (url: string, options: any) => {
|
||||
@@ -47,7 +47,7 @@ describe("TelegramNotifier", () => {
|
||||
const n = new TelegramNotifier({
|
||||
botToken: "123456:TEST",
|
||||
chatId: "-1001111111111",
|
||||
fetchFn: mockFetch,
|
||||
fetchFn: mockFetch as any,
|
||||
delayMs: 0,
|
||||
});
|
||||
|
||||
@@ -74,7 +74,7 @@ describe("TelegramNotifier", () => {
|
||||
const n = new TelegramNotifier({
|
||||
botToken: "123456:TEST",
|
||||
chatId: "-1001234567890",
|
||||
fetchFn: mockFetch,
|
||||
fetchFn: mockFetch as any,
|
||||
delayMs: 0,
|
||||
maxRetries: 3,
|
||||
});
|
||||
@@ -98,7 +98,7 @@ describe("TelegramNotifier", () => {
|
||||
const n = new TelegramNotifier({
|
||||
botToken: "123456:TEST",
|
||||
chatId: "-1001234567890",
|
||||
fetchFn: mockFetch,
|
||||
fetchFn: mockFetch as any,
|
||||
delayMs: 0,
|
||||
maxRetries: 3,
|
||||
});
|
||||
@@ -121,7 +121,7 @@ describe("TelegramNotifier", () => {
|
||||
const n = new TelegramNotifier({
|
||||
botToken: "123456:TEST",
|
||||
chatId: "-1001234567890",
|
||||
fetchFn: mockFetch,
|
||||
fetchFn: mockFetch as any,
|
||||
delayMs: 0,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user