"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

function _chai() {
  const data = require("chai");

  _chai = function () {
    return data;
  };

  return data;
}

function _isValidIdChunk() {
  const data = _interopRequireDefault(require("./is-valid-id-chunk"));

  _isValidIdChunk = function () {
    return data;
  };

  return data;
}

describe('isValidIdChunk', () => {
  it('should disallow non string inputs', () => {
    (0, _chai().expect)((0, _isValidIdChunk().default)(123)).to.be.false;
    (0, _chai().expect)((0, _isValidIdChunk().default)(123), true).to.be.false;
  });
  it('should allow a string that consist of small letters', () => {
    (0, _chai().expect)((0, _isValidIdChunk().default)('abc')).to.be.true;
    (0, _chai().expect)((0, _isValidIdChunk().default)('abc', true)).to.be.true;
  });
  it('should disallow a string that has a capital letter', () => {
    (0, _chai().expect)((0, _isValidIdChunk().default)('Abc')).to.be.false;
    (0, _chai().expect)((0, _isValidIdChunk().default)('Abc', true)).to.be.false;
  });
});