@henriquebaeta/randomtryber
Version:
17 lines (14 loc) • 414 B
JavaScript
const randomName = require("../index");
describe("Test if its a function", () => {
it("its a function?", () => {
expect(typeof randomName).toBe("function");
});
it("returns an object?", () => {
expect(typeof randomName()).toBe("object");
});
it("Has a name key? With a string?", () => {
expect(typeof randomName().name).toBe("string");
});
});
// npm login
// npm publish --access=public