UNPKG

@joktec/arango

Version:

JokTec - ArangoDB Service

27 lines 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const globals_1 = require("@jest/globals"); const arango_config_1 = require("../arango.config"); (0, globals_1.describe)('ArangoConfig', () => { (0, globals_1.it)('should hydrate numeric and boolean options', () => { const config = new arango_config_1.ArangoConfig({ conId: 'default', url: 'http://localhost:8529', databaseName: 'joktec', arangoVersion: '31000', maxRetries: '3', precaptureStackTraces: 'true', }); (0, globals_1.expect)(config.arangoVersion).toBe(31000); (0, globals_1.expect)(config.maxRetries).toBe(3); (0, globals_1.expect)(config.precaptureStackTraces).toBe(true); }); (0, globals_1.it)('should expose basic and bearer credential contracts', () => { (0, globals_1.expect)(new arango_config_1.BasicCredentials({ username: 'root', password: 'root' })).toEqual({ username: 'root', password: 'root', }); (0, globals_1.expect)(new arango_config_1.BearerCredentials({ token: 'token' })).toEqual({ token: 'token' }); }); }); //# sourceMappingURL=arango.config.spec.js.map