Skip to content

Instantly share code, notes, and snippets.

@poteto
Created February 10, 2015 02:40
Show Gist options
  • Save poteto/8520d04badf7198104a9 to your computer and use it in GitHub Desktop.
Save poteto/8520d04badf7198104a9 to your computer and use it in GitHub Desktop.
Mock for `google-maps-infobox` in Jest.js
/* global jest */
var InfoBox = jest.genMockFunction().mockReturnThis();
InfoBox.prototype = jest.genMockFunction();
InfoBox.prototype.createInfoBoxDiv_ = jest.genMockFunction();
InfoBox.prototype.getCloseBoxImg_ = jest.genMockFunction().mockReturnThis();
InfoBox.prototype.addClickHandler_ = jest.genMockFunction();
InfoBox.prototype.getCloseClickHandler_ = jest.genMockFunction().mockReturnThis();
InfoBox.prototype.panBox_ = jest.genMockFunction();
InfoBox.prototype.setBoxStyle_ = jest.genMockFunction();
InfoBox.prototype.getBoxWidths_ = jest.genMockFunction();
InfoBox.prototype.onRemove = jest.genMockFunction();
InfoBox.prototype.draw = jest.genMockFunction();
InfoBox.prototype.setOptions = jest.genMockFunction();
InfoBox.prototype.setContent = jest.genMockFunction();
InfoBox.prototype.setPosition = jest.genMockFunction();
InfoBox.prototype.setZIndex = jest.genMockFunction();
InfoBox.prototype.setVisible = jest.genMockFunction();
InfoBox.prototype.getContent = jest.genMockFunction().mockReturnThis();
InfoBox.prototype.getPosition = jest.genMockFunction().mockReturnThis();
InfoBox.prototype.getZIndex = jest.genMockFunction().mockReturnThis();
InfoBox.prototype.getVisible = jest.genMockFunction().mockReturnThis();
InfoBox.prototype.show = jest.genMockFunction();
InfoBox.prototype.hide = jest.genMockFunction();
InfoBox.prototype.open = jest.genMockFunction();
InfoBox.prototype.close = jest.genMockFunction();
module.exports = InfoBox;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment