{"size": 667, "ext": "js", "max_stars_repo_path": "test/test_helper.js", "max_stars_repo_name": "raooll/gutenberg_indexer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/test_helper.js", "max_issues_repo_name": "raooll/gutenberg_indexer", "max_issues_repo_issues_event_min_datetime": "2021-05-11T17:26:36.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-04T02:53:09.000Z", "max_forks_repo_path": "test/test_helper.js", "max_forks_repo_name": "raooll/gutenberg_indexer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 29.0, "max_line_length": 78, "alphanum_fraction": 0.6056971514}
const fs = require("fs");
const assert = require("assert");
const helper = require("src/utils/helpers");
const DB = require("src/database");
const expected_data = require("./common_data")
const test_file = "test/pg1.rdf";


beforeEach(async function () {
    DB.BookInfo.destroy({
        where:{}
    }).then(() => {});
  });

describe('helpers', function () {
    describe('#getFilesFromDir()', function () {
      it('should return one file of rdf format in the test dir', function () {
        files = helper.getFilesFromDir("./test", [".rdf"])
        assert.equal(files.length,1);
        assert.equal(files[0].includes("pg1.rdf"),true);
      });
    });
  });