{"_id":"jasmine-test-container-support","_rev":"40-ca78d7537b6b8f8e2aeb4ef82cd1171b","name":"jasmine-test-container-support","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"jasmine-test-container-support","version":"0.0.1","keywords":["jasmine","reporter","test container"],"author":{"url":"https://github.com/Nikku","name":"Nico Rehwaldt"},"license":"MIT","_id":"jasmine-test-container-support@0.0.1","maintainers":[{"name":"nikku","email":"git_nikku@nixis.de"}],"contributors":[{"url":"https://github.com/bpmn-io","name":"bpmn.io contributors"}],"homepage":"https://github.com/bpmn-io/jasmine-test-container-support","bugs":{"url":"https://github.com/bpmn-io/jasmine-test-container-support/issues"},"dist":{"shasum":"46e57ae098c5abd1f57c96e98a6b5bb19e387174","tarball":"https://registry.npmjs.org/jasmine-test-container-support/-/jasmine-test-container-support-0.0.1.tgz","integrity":"sha512-DPChs6dmKVKUIeo+EGe9mGncUmI5b0ufCrsndV1Z7wZksBieSKnw0sApTGX2+3LAOAKZoSA6wqBWnBlsitG3uA==","signatures":[{"sig":"MEUCIGS5X9/+wZhU6Rsh5XYVC9ecyOKrP/mX9xWO5Zdd5eLqAiEA0Cc2vPwLijUpnp8YwW/tYrjMhrGsEp973ETnHRPsF34=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"46e57ae098c5abd1f57c96e98a6b5bb19e387174","scripts":{"test":"grunt test"},"_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"repository":{"url":"https://github.com/bpmn-io/jasmine-test-container-support","type":"git"},"_npmVersion":"1.4.9","description":"A jasmine extension that provides per spec test containers","directories":{},"devDependencies":{"grunt":"~0.4.5","grunt-jsdoc":"~0.5.1","grunt-release":"~0.7.0","load-grunt-tasks":"~0.3.0","grunt-jasmine-node":"~0.2.1","grunt-contrib-watch":"~0.5.0","grunt-contrib-jshint":"~0.10.0"}},"0.1.0":{"name":"jasmine-test-container-support","version":"0.1.0","keywords":["jasmine","reporter","test container"],"author":{"url":"https://github.com/Nikku","name":"Nico Rehwaldt"},"license":"MIT","_id":"jasmine-test-container-support@0.1.0","maintainers":[{"name":"nikku","email":"git_nikku@nixis.de"}],"contributors":[{"url":"https://github.com/bpmn-io","name":"bpmn.io contributors"}],"homepage":"https://github.com/bpmn-io/jasmine-test-container-support","bugs":{"url":"https://github.com/bpmn-io/jasmine-test-container-support/issues"},"dist":{"shasum":"dd4094c5790574c0fc1934e58db08ca9a88d96ff","tarball":"https://registry.npmjs.org/jasmine-test-container-support/-/jasmine-test-container-support-0.1.0.tgz","integrity":"sha512-IrWznJVOO+UnJgiKgA08TmAi7JvQnPmU1fodTk4Wt4l8e844swXrS2Wxs/pwHtwg5fJZLxNbYfAtCh9IPunsBQ==","signatures":[{"sig":"MEUCIQDlY6McDKF0ELNmgBs3Qk0rOpDcLmkqCxzk/FdJUCOo3AIgYcG+ZgilUnsw7Gi31IWswbnsjodl99gMW7dsjlkvfHI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"dd4094c5790574c0fc1934e58db08ca9a88d96ff","gitHead":"e7d0c3d1d4f08a67fa45fe4c38a970162e9c1d64","scripts":{"test":"grunt test"},"_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"repository":{"url":"https://github.com/bpmn-io/jasmine-test-container-support","type":"git"},"_npmVersion":"2.1.5","description":"A jasmine extension that provides per spec test containers","directories":{},"_nodeVersion":"0.10.32","devDependencies":{"grunt":"~0.4.5","grunt-jsdoc":"~0.5.1","grunt-release":"~0.7.0","load-grunt-tasks":"~0.3.0","grunt-jasmine-node":"~0.2.1","grunt-contrib-watch":"~0.5.0","grunt-contrib-jshint":"~0.10.0"}},"0.1.1":{"name":"jasmine-test-container-support","version":"0.1.1","keywords":["jasmine","reporter","test container"],"author":{"url":"https://github.com/Nikku","name":"Nico Rehwaldt"},"license":"MIT","_id":"jasmine-test-container-support@0.1.1","maintainers":[{"name":"nikku","email":"git_nikku@nixis.de"}],"contributors":[{"url":"https://github.com/bpmn-io","name":"bpmn.io contributors"}],"homepage":"https://github.com/bpmn-io/jasmine-test-container-support","bugs":{"url":"https://github.com/bpmn-io/jasmine-test-container-support/issues"},"dist":{"shasum":"4c38efee64764b1551740429006e84a810d56d8f","tarball":"https://registry.npmjs.org/jasmine-test-container-support/-/jasmine-test-container-support-0.1.1.tgz","integrity":"sha512-szo3lOSxknH109aLliv1M841VhWGDr6SkNBRicjs430Dt3U8Bxy3ATWtvPqdjK74Ij6CYxF1O2O8ufJPeRkwYQ==","signatures":[{"sig":"MEUCIQCs08k7NYy5mMrvpHhYjm6K8sizY82r//jNsrW7bOojHwIgPVaSMBFMRJfQNWcUdYM2Jm+R0zyPRzSlE98CH2hrlL8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"4c38efee64764b1551740429006e84a810d56d8f","gitHead":"2b104660d4a608a9f61519806143b0dc48be19b4","scripts":{"test":"grunt test"},"_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"repository":{"url":"https://github.com/bpmn-io/jasmine-test-container-support","type":"git"},"_npmVersion":"2.1.5","description":"A jasmine extension that provides per spec test containers","directories":{},"_nodeVersion":"0.10.32","devDependencies":{"grunt":"~0.4.5","grunt-jsdoc":"~0.5.1","grunt-release":"~0.7.0","load-grunt-tasks":"~0.3.0","grunt-jasmine-node":"~0.2.1","grunt-contrib-watch":"~0.5.0","grunt-contrib-jshint":"~0.10.0"}},"0.1.2":{"name":"jasmine-test-container-support","version":"0.1.2","keywords":["jasmine","reporter","test container"],"author":{"url":"https://github.com/Nikku","name":"Nico Rehwaldt"},"license":"MIT","_id":"jasmine-test-container-support@0.1.2","maintainers":[{"name":"nikku","email":"git_nikku@nixis.de"}],"contributors":[{"url":"https://github.com/bpmn-io","name":"bpmn.io contributors"}],"homepage":"https://github.com/bpmn-io/jasmine-test-container-support","bugs":{"url":"https://github.com/bpmn-io/jasmine-test-container-support/issues"},"dist":{"shasum":"050a7634bfcd23bbfd1ea9acc7b2c1701cb6c32e","tarball":"https://registry.npmjs.org/jasmine-test-container-support/-/jasmine-test-container-support-0.1.2.tgz","integrity":"sha512-bFG0I4OLPEdEjNTZ8G1W9lsbm/kkCObcDIlwF9X9shOTrtUmMrWMeO9jgpDajeiquuiArnJQ67W/mVrdwyBXpg==","signatures":[{"sig":"MEQCIH9SR83Rvm1VTct/YJpKJqIZB0s3tDvsuh+wqGyN0g8PAiAYMQD+7pi5Y14AKAjc7Su75HfFbtSsIC1TgMfgknORPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","_shasum":"050a7634bfcd23bbfd1ea9acc7b2c1701cb6c32e","gitHead":"7295d059ec3c3824217ac96ddddd630ad932fde4","scripts":{"test":"grunt test"},"_npmUser":{"name":"nikku","email":"git_nikku@nixis.de"},"repository":{"url":"https://github.com/bpmn-io/jasmine-test-container-support","type":"git"},"_npmVersion":"2.1.9","description":"A jasmine extension that provides per spec test containers","directories":{},"_nodeVersion":"0.10.33","devDependencies":{"grunt":"~0.4.5","grunt-jsdoc":"~0.5.1","grunt-release":"~0.7.0","load-grunt-tasks":"~0.3.0","grunt-jasmine-node":"~0.2.1","grunt-contrib-watch":"~0.5.0","grunt-contrib-jshint":"~0.10.0"}}},"time":{"created":"2014-06-18T09:20:37.429Z","modified":"2026-07-08T15:59:48.631Z","0.0.1":"2014-06-18T09:20:37.429Z","0.1.0":"2014-11-20T13:25:52.313Z","0.1.1":"2014-11-20T13:26:36.205Z","0.1.2":"2014-12-08T09:35:16.052Z"},"bugs":{"url":"https://github.com/bpmn-io/jasmine-test-container-support/issues"},"author":{"url":"https://github.com/Nikku","name":"Nico Rehwaldt"},"license":"MIT","homepage":"https://github.com/bpmn-io/jasmine-test-container-support","keywords":["jasmine","reporter","test container"],"repository":{"url":"https://github.com/bpmn-io/jasmine-test-container-support","type":"git"},"description":"A jasmine extension that provides per spec test containers","contributors":[{"url":"https://github.com/bpmn-io","name":"bpmn.io contributors"}],"maintainers":[{"email":"bpmnio@camunda.com","name":"bpmn-io-admin"},{"email":"git_nikku@nixis.de","name":"nikku"},{"email":"maciejbarel@gmail.com","name":"barmac"},{"email":"philippfromme@outlook.com","name":"philippfromme"},{"email":"maximilian.trumpf@camunda.com","name":"maxtru"},{"email":"valentin.serra@camunda.com","name":"skaiir-camunda"},{"email":"vinicius@vsgoulart.com","name":"vsgoulart"},{"email":"ali.barin53@gmail.com","name":"barinali"},{"email":"ev.bilske@camunda.com","name":"ev-camunda"},{"email":"jarek.danielak@camunda.com","name":"jarekdanielak"},{"email":"alekseyManetov@gmail.com","name":"alekseymanetov"}],"readme":"# jasmine-test-container-support\n\nThis is an extension for [jasmine](jasmine.github.io/2.0/introduction.html) that provides per-spec test containers, i.e. `<div />` DOM elements.\n\n## Features\n\nThe library provides a test container with a caption for each spec.\nLinks and conditional coloring for successful or failed tests are included.\n\n![jasmine-test-container-support in action](https://raw.githubusercontent.com/bpmn-io/jasmine-test-container-support/master/docs/screenshot.png \"Screenshot of the test container on bpmn-js\")\n\nThe screenshot shows the container being used during SVG rendering test for [bpmn-js](https://github.com/bpmn-io/bpmn-js).\n\n\n## Usage\n\nGet the test container support extend jasmine with it before running the test suite.\n\n```javascript\nvar JasmineTestContainerSupport = window.JasmineTestContainerSupport || require('jasmine-test-container-support');\n\nJasmineTestContainerSupport.extend(jasmine);\n```\n\nThe container support extends the jasmine test environment with a `#getTestContainer()` method.\nUse it in your tests to locate a per spec test container that your test cases may draw in.\n\n```javascript\ndescribe('mytest', function() {\n\n  var container;\n\n  beforeEach(function() {\n    container = jasmine.getEnv().getTestContainer();\n  });\n\n  it('can access container', function() {\n    // we may draw on container now :o)\n  });\n});\n```\n\nThe container hijacks the [jasmine reporters](https://jasmine.github.io/2.0/boot.html#section-Reporters) feature to get access to the currently executed spec and create the container for it. Check out the [implementation](https://github.com/bpmn-io/jasmine-test-container-support/blob/master/index.js).\n\n\n## LICENSE\n\nMIT","readmeFilename":"README.md"}