const chai = require("chai");
const expect = chai.expect;
const str = require("../beanCountingFunction");

const countBs = str.countBs;
const countChar = str.countChar;

describe("Bean counting function", function () {
	it("Case 01: How many times B goes in BBC? 2", function () {
		expect(countBs("BBC")).equals(2);
	});
	it("Case 01: How many times k goes in kakkerlak? 4", function () {
		expect(countChar("kakkerlak", "k")).equals(4);
	});

});

