{"size": 713, "ext": "js", "max_stars_repo_path": "test/extract/resolve/isCore.spec.js", "max_stars_repo_name": "davidparkagoda/dependency-cruiser", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/extract/resolve/isCore.spec.js", "max_issues_repo_name": "davidparkagoda/dependency-cruiser", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/extract/resolve/isCore.spec.js", "max_forks_repo_name": "davidparkagoda/dependency-cruiser", "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": 27.4230769231, "max_line_length": 62, "alphanum_fraction": 0.6100981767}
/* eslint-disable no-unused-expressions */
const expect = require("chai").expect;
const isCore = require("../../../src/extract/resolve/isCore");

describe("extract/resolve/isCore", () => {
  it("returns false when passed nothing", () => {
    expect(isCore()).to.equal(false);
  });

  it("returns false when passed null", () => {
    expect(isCore(null)).to.equal(false);
  });

  it("returns false when passed a local module", () => {
    expect(isCore("./path")).to.equal(false);
  });

  it("returns false when passed a non core module", () => {
    expect(isCore("flowdash")).to.equal(false);
  });

  it("returns true when passed a core module", () => {
    expect(isCore("path")).to.equal(true);
  });
});
