{"_id":"chai-mugshot","_rev":"39-def2f4ea02efe848a068893b00870090","name":"chai-mugshot","description":"Chai plugin for Mugshot visual testing lib","dist-tags":{"latest":"0.3.1"},"versions":{"0.0.0":{"name":"chai-mugshot","version":"0.0.0","description":"Chai plugin for Mugshot visual testing lib","main":"index.js","scripts":{"test":"mocha","browser":"phantomjs --webdriver=4444","linter":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/uberVU/chai-mugshot.git"},"keywords":["chai","mugshot","plugin","assertion","expect"],"author":{"name":"Simion Florentin"},"license":"MIT","bugs":{"url":"https://github.com/uberVU/chai-mugshot/issues"},"dependencies":{"q":"^1.4.1"},"peerDependencies":{"chai":"^3.2.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","eslint":"^1.2.1","mugshot":"0.0.1","phantomjs":"^1.9.18","webdriverio":"^3.1.0"},"gitHead":"2b3f68a4ec08b6dac037b7da411b7c22b558359e","homepage":"https://github.com/uberVU/chai-mugshot","_id":"chai-mugshot@0.0.0","_shasum":"b476d8578f0bd49ce02e5502cbca29530ecd75d0","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.10.29","_npmUser":{"name":"nighttrax","email":"office.nightcrawler@gmail.com"},"dist":{"shasum":"b476d8578f0bd49ce02e5502cbca29530ecd75d0","tarball":"https://registry.npmjs.org/chai-mugshot/-/chai-mugshot-0.0.0.tgz","integrity":"sha512-wHWrHLU94SvZNSlDJ8IfnfNqkh3F5RPJcSs/hH2fsbJf+KI1HgsqWElUVNNPScDNXozU7StP1zul3o1GpHyy9A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP7ir5cr0il0gB5PPfEKJvJx3bbbW9Bs6iDxU46kqIJQIhAIVBq/mnpxxmv3ACCbrZbxfCE3aq3Ad4Bu24I9AQK7Ry"}]},"maintainers":[{"name":"nighttrax","email":"office.nightcrawler@gmail.com"}]},"0.1.0":{"name":"chai-mugshot","version":"0.1.0","description":"Chai plugin for Mugshot visual testing lib","main":"index.js","scripts":{"test":"mocha","browser":"phantomjs --webdriver=4444","linter":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/uberVU/chai-mugshot.git"},"keywords":["chai","mugshot","plugin","assertion","expect"],"author":{"name":"Simion Florentin"},"license":"MIT","bugs":{"url":"https://github.com/uberVU/chai-mugshot/issues"},"dependencies":{"q":"^1.4.1"},"peerDependencies":{"chai":"^3.2.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","eslint":"^1.2.1","mugshot":"0.0.1","phantomjs":"^1.9.18","webdriverio":"^3.1.0"},"gitHead":"4ed55c774817a0dbfea993cf4045d66008f18638","homepage":"https://github.com/uberVU/chai-mugshot","_id":"chai-mugshot@0.1.0","_shasum":"03a0e8871c20e0e20f50debd6dfbf359230b9e31","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.10.29","_npmUser":{"name":"nighttrax","email":"office.nightcrawler@gmail.com"},"dist":{"shasum":"03a0e8871c20e0e20f50debd6dfbf359230b9e31","tarball":"https://registry.npmjs.org/chai-mugshot/-/chai-mugshot-0.1.0.tgz","integrity":"sha512-9QSua8bxmZMIVX7N2zYeE5dCnuWhasT71x7cV6reVDBBMaitW4hXzCjpr0Fg5R8o1SKrokGnk0U59yXSnyH10A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8ryF0FvMdGziDJV2dH5Zr1fm1CG0/Htc8WR2EvdYLEAIgOnS0M7rOdlTfROekn+EpT4sXL4xdNPi3l/R5j380/UQ="}]},"maintainers":[{"name":"nighttrax","email":"office.nightcrawler@gmail.com"}]},"0.2.0":{"name":"chai-mugshot","version":"0.2.0","description":"Chai plugin for Mugshot visual testing lib","main":"index.js","scripts":{"test":"mocha","browser":"phantomjs --webdriver=4444","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/uberVU/chai-mugshot.git"},"keywords":["chai","mugshot","plugin","assertion","expect"],"author":{"name":"Simion Florentin"},"license":"MIT","bugs":{"url":"https://github.com/uberVU/chai-mugshot/issues"},"dependencies":{"q":"^1.4.1"},"peerDependencies":{"chai":"^3.2.0","mugshot":"0.2.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","eslint":"1.4.3","mocha":"^2.3.0","mugshot":"0.2.0","phantomjs":"^1.9.18","webdriverio":"^3.1.0"},"gitHead":"a491563b47a5b367753c14b85a506b199b53f96c","homepage":"https://github.com/uberVU/chai-mugshot#readme","_id":"chai-mugshot@0.2.0","_shasum":"884070eb08bfbfde20c5d305f15a8ea76be6890e","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.2.0","_npmUser":{"name":"nighttrax","email":"office.nightcrawler@gmail.com"},"dist":{"shasum":"884070eb08bfbfde20c5d305f15a8ea76be6890e","tarball":"https://registry.npmjs.org/chai-mugshot/-/chai-mugshot-0.2.0.tgz","integrity":"sha512-mCZFBbgJaNRg8ZuQOk81d++AofA+jnJyl5YYcaS5trTF4zE3fSmu7c+g75uZlx+9xk2wERgLmHCEq/W+358gVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxP5pcFJFGHP5xT/3i7GbJ4fSIYVBZPDyozPcP1btQ8AiBRhz132FI4tyLyyA3X2CRBOCXdbMko8xyH/pQaBt5jrg=="}]},"maintainers":[{"name":"nighttrax","email":"office.nightcrawler@gmail.com"}]},"0.3.0":{"name":"chai-mugshot","version":"0.3.0","description":"Chai plugin for Mugshot visual testing lib","main":"index.js","scripts":{"test":"mocha","browser":"phantomjs --webdriver=4444","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/uberVU/chai-mugshot.git"},"keywords":["chai","mugshot","plugin","assertion","expect"],"author":{"name":"Simion Florentin"},"license":"MIT","bugs":{"url":"https://github.com/uberVU/chai-mugshot/issues"},"peerDependencies":{"chai":"^3.2.0","mugshot":"0.2.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","eslint":"1.4.3","mocha":"^2.3.0","mugshot":"0.2.0","phantomjs":"^1.9.18","webdriverio":"^3.1.0"},"gitHead":"91d4c36ec7a71719241c7e399889847b8717a770","homepage":"https://github.com/uberVU/chai-mugshot#readme","_id":"chai-mugshot@0.3.0","_shasum":"a65b5b69ab7ed5ec632c843892345f6acbc5622e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"adela-istrate-hs","email":"Adela.Istrate@hootsuite.com"},"dist":{"shasum":"a65b5b69ab7ed5ec632c843892345f6acbc5622e","tarball":"https://registry.npmjs.org/chai-mugshot/-/chai-mugshot-0.3.0.tgz","integrity":"sha512-HDVuUaP6d/y3jpbB/bbzlAtxGdknapt5kU8f+hH6AtKiFkDKR39uwvYuPB0Vrs11+P/o+jH/dVR6A7FP5U6dqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKA6p2+lVpzZ4WsML6c3UhfM/83GNmJl/qMCkNinAuBwIhANtt/Q5+hGlV/rvQcdelSMKUbC3xqkDiSQnh79H1uiw4"}]},"maintainers":[{"name":"adela-istrate-hs","email":"Adela.Istrate@hootsuite.com"},{"name":"nighttrax","email":"office.nightcrawler@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/chai-mugshot-0.3.0.tgz_1473162117285_0.7005937991198152"}},"0.3.1":{"name":"chai-mugshot","version":"0.3.1","description":"Chai plugin for Mugshot visual testing lib","main":"index.js","scripts":{"test":"mocha","browser":"phantomjs --webdriver=4444","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/uberVU/chai-mugshot.git"},"keywords":["chai","mugshot","plugin","assertion","expect"],"author":{"name":"Simion Florentin"},"license":"MIT","bugs":{"url":"https://github.com/uberVU/chai-mugshot/issues"},"peerDependencies":{"chai":"^3.2.0","mugshot":"~0.3.0"},"devDependencies":{"chai":"^3.2.0","chai-as-promised":"^5.1.0","eslint":"1.4.3","mocha":"^2.3.0","mugshot":"~0.3.0","mugshot-looks-same":"~1.0.0","mugshot-webdriverio":"~1.0.0","phantomjs":"^1.9.18","webdriverio":"^3.1.0"},"gitHead":"5c5405ee6e9d212889d4fa7b40de1a6347ff9f05","homepage":"https://github.com/uberVU/chai-mugshot#readme","_id":"chai-mugshot@0.3.1","_shasum":"c87a0f2c18106a2b1a9c391a489d2f27fa519b9d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"4.4.7","_npmUser":{"name":"adela-istrate-hs","email":"Adela.Istrate@hootsuite.com"},"dist":{"shasum":"c87a0f2c18106a2b1a9c391a489d2f27fa519b9d","tarball":"https://registry.npmjs.org/chai-mugshot/-/chai-mugshot-0.3.1.tgz","integrity":"sha512-Y0m9CcnyvMh8HUyTVkda2oC+19P5DIyI5vBJYTO1fRJiJxDNGxv8Jg5LNsChAsaFKZy1ojRkaOWzeuD1t/3gxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHt2Z/OzpsGspRq3uDApBjZPRJO0SUjcF26F2lJYcqf6AiEAsmXsbr7A2L7O69rQ+t/C+SU3TgS+8jwB1D7H6cpnyBU="}]},"maintainers":[{"name":"adela-istrate-hs","email":"Adela.Istrate@hootsuite.com"},{"name":"nighttrax","email":"office.nightcrawler@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chai-mugshot-0.3.1.tgz_1473411816608_0.043959326576441526"}}},"readme":"# Chai-Mugshot [![Build Status](https://travis-ci.org/uberVU/chai-mugshot.svg?branch=master)](https://travis-ci.org/uberVU/chai-mugshot)\n\n[Chai](http://chaijs.com/) plugin for the [Mugshot](https://github.com/uberVU/mugshot) Visual regression testing lib.\n\n\n## Install\n\n```sh\nnpm install --save-dev chai-mugshot\n```\n\n\n## Usage\n\n```js\nvar chai = require('chai');\nvar expect = require('chai').expect;\nvar chaiMugshot = require('chai-mugshot');\nvar Mugshot = require('mugshot');\nvar WebdriverIOAdapter = Mugshot.adapters.WebdriverIO;\nvar webdriverio = require('webdriverio');\n\ndescribe('Suite', function() {\n  var webdriverioInstance;\n\n  before(function(done) {\n    var options = {\n      desiredCapabilities: {\n        browserName: 'firefox'\n      }\n    };\n\n    webdriverioInstance = webdriverio.remote(options).init()\n      .url('http://example.com')\n      .then(function() {\n      \n        var browser = new WebdriverIOAdapter(webdriverioInstance);\n        var mugshot = new Mugshot(browser);\n        \n        chai.use(chaiMugshot(mugshot));\n        \n        done();\n      });\n  });\n\n  it('should always look the same', function() {\n    var captureItem = {\n      name: 'myComponent',\n      selector: '#myComponent'\n    };\n    \n    return expect(captureItem).to.be.identical;\n  });\n  \n  it('should always differ', function() {\n  // see https://github.com/uberVU/mugshot#methods for details\n    var captureItem = {\n      name: 'component',\n      selector: '#component'\n    };\n    \n    return expect(captureItem).to.not.be.identical;\n  });\n\n  after(function() {\n    return webdriverio.end();\n  });\n});\n```\n\n\n## API\n\nFor the plugin to function, you must pass a `Mugshot` instance as in the example provided above.\n\n\n### Properties\n\nThe assertion properties return a `promise` that tells [Mocha](http://mochajs.org/) or `other test runners`, that the test is `async`.\n\n- **identical** - asserts that the `baseline` on disk of the `capturItem` is identical to the current `screenshot`\n","maintainers":[{"name":"flavius","email":"flaviusone@gmail.com"},{"name":"ovidiu","email":"ovidiu.bute@gmail.com"},{"name":"valentin-radulescu-hs","email":"valentin.radulescu@hootsuite.com"}],"time":{"modified":"2022-06-13T05:51:09.143Z","created":"2015-08-26T14:54:11.824Z","0.0.0":"2015-08-26T14:54:11.824Z","0.1.0":"2015-08-26T15:09:48.485Z","0.2.0":"2015-12-14T14:19:55.036Z","0.3.0":"2016-09-06T11:41:58.041Z","0.3.1":"2016-09-09T09:03:38.038Z"},"homepage":"https://github.com/uberVU/chai-mugshot#readme","keywords":["chai","mugshot","plugin","assertion","expect"],"repository":{"type":"git","url":"git+https://github.com/uberVU/chai-mugshot.git"},"author":{"name":"Simion Florentin"},"bugs":{"url":"https://github.com/uberVU/chai-mugshot/issues"},"license":"MIT","readmeFilename":"README.md","users":{"flore77":true,"rubiadias":true}}