UNPKG

ts-firebird

Version:
16 lines 759 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const firebird_database_1 = __importDefault(require("./firebird.database")); describe('Test FirebirdDatabase', () => { it('Test buildAndAttach exception', async () => { await expect(firebird_database_1.default.buildAndAttach({ port: 3060 })).rejects.toHaveProperty('code', 'ECONNREFUSED'); }); it('Test checkDb', async () => { const fd = new firebird_database_1.default(); await expect(fd.query('TEST', [])).rejects.toThrow('Database is null'); }); }); //# sourceMappingURL=firebird.database.spec.js.map