text: "use strict";
  
  var namer = require("@modular-css/test-utils/namer.js"),
  
      glob = require("../glob.js");
  
  describe("/glob.js", () => {
      it("should be a function", () => {
          expect(typeof glob).toBe("function");
      });
  
      it("should use a default search", () => glob({
              namer,
              cwd : "./packages/glob/test/specimens",
          })
          .then((processor) => processor.output())
          .then((output) => expect(output.css).toMatchSnapshot()));
  
      it("should find files on disk & output css", () => glob({
              namer,
              cwd    : "./packages/glob/test/specimens",
              search : [
                  "**/*.css",
              ],
          })
          .then((processor) => processor.output())
          .then((output) => expect(output.css).toMatchSnapshot()));
  
      it("should support exclusion patterns", () => glob({
              namer,
              cwd    : "./packages/glob/test/specimens",
              search : [
                  "**/*.css",
                  "!**/exclude/**",
              ],
          })
          .then((processor) => processor.output())
          .then((output) => expect(output.css).toMatchSnapshot()));
  });
  