text: const parse = require('./parse');
  const { GIT_MESSAGE_REGEX } = require('./constants');
  
  describe('parse', () => {
    beforeEach(() => {
      jest.clearAllMocks();
    });
  
    it(`should always return back a string`, () => {
      expect(typeof parse(`is this major key?`, GIT_MESSAGE_REGEX)).toBe(`string`);
      expect(typeof parse(`major key`, GIT_MESSAGE_REGEX)).toBe(`string`);
    });
  
    it(`should get a matching pattern`, () => {
      expect(parse(`big up: major key alert`, GIT_MESSAGE_REGEX)).toBe(`major`);
    });
  
    it(`should get the first matching pattern`, () => {
      expect(parse(`this is patch job on a minor's roof who is married to a major`, GIT_MESSAGE_REGEX)).toBe(`minor`);
    });
  });
  