text: "use strict";
  
  // deps
  
  	// natives
  	const { join } = require("path");
  	const { strictEqual } = require("assert");
  
  	// locals
  	const isDirectory = require(join(__dirname, "..", "lib", "checkers", "isDirectory.js"));
  
  // tests
  
  describe("checkers / isDirectory", () => {
  
  	it("should test with empty data", (done) => {
  
  		isDirectory("directory").then(() => {
  			done(new Error("There is no generated error"));
  		}).catch((err) => {
  
  			strictEqual(typeof err, "object", "Generated error is not as expected");
  			strictEqual(err instanceof ReferenceError, true, "Generated error is not as expected");
  
  			done();
  
  		});
  
  	});
  
  	it("should test with wrong data", (done) => {
  
  		isDirectory("directory", 1234).then(() => {
  			done(new Error("There is no generated error"));
  		}).catch((err) => {
  
  			strictEqual(typeof err, "object", "Generated error is not as expected");
  			strictEqual(err instanceof TypeError, true, "Generated error is not as expected");
  
  			done();
  
  		});
  
  	});
  
  	it("should test with empty data", (done) => {
  
  		isDirectory("directory", "").then(() => {
  			done(new Error("There is no generated error"));
  		}).catch((err) => {
  
  			strictEqual(typeof err, "object", "Generated error is not as expected");
  			strictEqual(err instanceof Error, true, "Generated error is not as expected");
  
  			done();
  
  		});
  
  	});
  
  	it("should test with not relative directory", () => {
  
  		return isDirectory("directory", "./");
  
  	});
  
  	it("should test with absolute directory", () => {
  
  		return isDirectory("directory", __dirname);
  
  	});
  
  });
  