"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const strict_1 = __importDefault(require("node:assert/strict"));
const node_test_1 = require("node:test");
const Logger_js_1 = require("../../shared/logger/Logger.js");
const SubscriptionService_js_1 = require("./SubscriptionService.js");
const disabledConfig = {
    telegramBotToken: "test-token",
    restApiBaseUrl: "http://localhost:5555",
    coinMarketCapApiKey: "test-key",
    storageDir: ".signals-storage",
    mongoUri: undefined,
    adminTelegramIds: [],
    paymentEncryptionSecret: undefined,
    paymentConfirmations: 3,
    paymentPollIntervalSeconds: 5,
    paymentNetworks: {},
    adminName: "Quant Whisper Admin",
    logLevel: "silent",
    trendingCacheTtlSeconds: 120,
    supportEnabled: false,
    supportAiConfidenceThreshold: 0.6,
    keepAliveIntervalMs: 600000,
    keepAliveRequestTimeoutMs: 30000,
    logDir: "logs",
    logToFile: false
};
(0, node_test_1.test)("disabled subscription service does not grant premium access", async () => {
    const service = new SubscriptionService_js_1.SubscriptionService(disabledConfig, undefined, undefined, new Logger_js_1.Logger("error"));
    strict_1.default.equal(service.isEnabled(), false);
    strict_1.default.equal(await service.checkActiveSubscription("123456789", "uniswap-v2"), false);
});
