export var mockData = function mockData(files) {
  return {
    dataTransfer: {
      files: files,
      items: files.map(function (file) {
        return {
          kind: 'file',
          type: file.type,
          getAsFile: function getAsFile() {
            return file;
          }
        };
      }),
      types: ['Files']
    }
  };
};
export var getMockFiles = function getMockFiles() {
  var filesAmount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
  var extension = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'json';
  var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'application/json';
  var fileNames = ['foo', 'bar', 'baz', 'foobar', 'foobaz', 'bazbar'];
  return new Array(filesAmount).fill(null).map(function (_, index) {
    var name = fileNames[index % fileNames.length];
    var file = new File(['hello world'], "".concat(name, ".").concat(extension), {
      type: type
    });
    return file;
  });
};
export var getMockEvent = function getMockEvent(eventName, files) {
  var event = new Event(eventName, {
    bubbles: true
  });
  var data = mockData(files);
  Object.assign(event, data);
  return event;
};
//# sourceMappingURL=dropzoneMockData.js.map