npm-exists.test.js 410 B

12345678910111213141516
  1. "use strict";
  2. const exists = require("./npm-exists");
  3. describe("npm-exists", () => {
  4. it("should successfully existence of a published module", () => {
  5. exists("webpack-addons-ylvis").then(status => {
  6. expect(status).toBe(true);
  7. });
  8. });
  9. it("should return false for the existence of a fake module", () => {
  10. exists("webpack-addons-noop").then(status => {
  11. expect(status).toBe(false);
  12. });
  13. });
  14. });