{"size": 478, "ext": "js", "max_stars_repo_path": "db/tables/users.test.js", "max_stars_repo_name": "katelinlis/botforrent", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "db/tables/users.test.js", "max_issues_repo_name": "katelinlis/botforrent", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "db/tables/users.test.js", "max_forks_repo_name": "katelinlis/botforrent", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.9, "max_line_length": 85, "alphanum_fraction": 0.6129707113}
//import config from "config";
const config = require('config');

const dbConfig = config.get("Customer.dbConfig");
//import db from "../index.js"
const db = require('../index.js');
db.init(dbConfig);

const table = db.table

test('Create User db', () => {

    return table.user.RegisterUser("asdssa","asdasdas","sadsda",0).then((status) => {
        expect(status).toBe("success")

    }).catch((err) => {
        expect(err).toEqual({ error: "err", errNum: 400 })
    })
});
