"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const chai_1 = require("chai");
const factory_1 = require("../../src/factory");
const rpc_provider_1 = require("@polkadot/rpc-provider");
describe("createProvider", () => {
    it("should support HTTP endpoints", () => {
        for (const endpoint of ["http://example.com", "https://example.com"]) {
            const httpProvider = factory_1.createProvider(endpoint);
            chai_1.assert.instanceOf(httpProvider, rpc_provider_1.HttpProvider);
        }
    });
    it("should support Websocket endpoints", () => {
        for (const endpoint of ["ws://example.com", "wss://example.com"]) {
            const wsProvider = factory_1.createProvider(endpoint, false);
            chai_1.assert.instanceOf(wsProvider, rpc_provider_1.WsProvider);
        }
    });
});
//# sourceMappingURL=factory.test.js.map