import chai from "chai";
import makes from "./makes";

chai.should();

let result = null;

describe("When I use the makes module", () => {
    describe("to get car makes", () => {
        before(() => result = makes.get("cars"));
        describe("the result", () => {
            it("is a list of car makes", () => {
                result[0].name.should.equal("Abarth");
                result[1].name.should.equal("AC");
                result[2].name.should.equal("Acura");
            });
        });
    });
});