"use strict";

var adjAdjAnimal = require("../lib/index");

var expect = require("chai").expect;

describe("the library", function () {
	describe("getting a default id", function () {
		var result;

		before(function () {
			return adjAdjAnimal()
			.then(function (id) {
				result = id;
			});
		});

		it("generates adj-adj-animal", function () {
			expect(result, "matches").to.match(/[a-z]+-[a-z]+-[a-z]+/);
		});
	});

	describe("getting an id with specified number of adjectives", function () {
		var result;

		before(function () {
			return adjAdjAnimal(6)
			.then(function (id) {
				result = id;
			});
		});

		it("generates adj-{6}animal", function () {
			expect(result, "matches").to.match(/([a-z]+-){6}[a-z]+/);
		});
	});
});
"use strict";

var adjAdjAnimal = require("../lib/index");

var expect = require("chai").expect;

describe("the library", function () {
	describe("getting a default id", function () {
		var result;

		before(function () {
			return adjAdjAnimal()
			.then(function (id) {
				result = id;
			});
		});

		it("generates adj-adj-animal", function () {
			expect(result, "matches").to.match(/[A-Z][a-z]+[A-Z][a-z]+[A-Z][a-z]+/);
		});
	});

	describe("getting an id with specified number of adjectives", function () {
		var result;

		before(function () {
			return adjAdjAnimal(6)
			.then(function (id) {
				result = id;
			});
		});

		it("generates adj-{6}animal", function () {
			expect(result, "matches").to.match(/([A-Z][a-z]+){6}[A-Z][a-z]+/);
		});
	});
});
Change test to match new word format.
Change test to match new word format.
