"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const graph_1 = require("./graph");
const models_1 = require("./models");
const environment_1 = require("./models/environment");
function getTestConfig() {
    const config = {};
    config.sdkMaxStaleFriendshipDays = 100;
    config.maxPageId = 100;
    config.dsnpVersions = [models_1.DsnpVersion.Version1_0];
    config.maxGraphPageSizeBytes = 100;
    config.maxKeyPageSizeBytes = 100;
    const schemaConfig = {};
    schemaConfig.dsnpVersion = models_1.DsnpVersion.Version1_0;
    schemaConfig.connectionType = models_1.ConnectionType.Follow;
    schemaConfig.privacyType = models_1.PrivacyType.Public;
    config.schemaMap = { 1: schemaConfig };
    config.graphPublicKeySchemaId = 11;
    return config;
}
test('printHelloGraph should print "Hello, Graph!"', async () => {
    // Mock the console.log function
    const consoleLogMock = jest.spyOn(console, 'log').mockImplementation();
    const environment = { environmentType: environment_1.EnvironmentType.Dev, config: getTestConfig() };
    const graph = new graph_1.Graph(environment);
    graph.printHelloGraph();
    expect(consoleLogMock).toHaveBeenCalledWith('Hello, Graph!');
    await graph.freeGraphState();
});
//# sourceMappingURL=index.test.js.map