{"size": 512, "ext": "js", "max_stars_repo_path": "test/main.test.js", "max_stars_repo_name": "SoNiceElijah/ubot-script-parser", "max_stars_repo_stars_event_min_datetime": "2022-03-25T19:49:38.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-25T19:49:38.000Z", "max_issues_repo_path": "test/main.test.js", "max_issues_repo_name": "SoNiceElijah/ubot-script-parser", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/main.test.js", "max_forks_repo_name": "SoNiceElijah/ubot-script-parser", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.9473684211, "max_line_length": 75, "alphanum_fraction": 0.59375}
const assert = require('chai').assert;
const { goFromFile } = require('../index');

const path = require('path');

describe("New feature test", () => {
    it("Can load and parse script with import", () => {

        const model = goFromFile(path.resolve(__dirname, 'test.ubot'), {});
        // model.printDebug();

        console.log(model.valid());
        console.log(model.iterateErrs(e => console.log(e)));
        assert.isTrue(model.valid());
        assert.isFalse(model.containsWarns());

    });
});
