{"_id":"mojito-markup-test","_rev":"45-21e2cf677a39b3160287acafc8496e4b","name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.0.1","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.7"},"devDependencies":{"mojito":"0.7.x","mojito-cli":"~0.0.5","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":"https://github.com/yahoo/mojito-markup-test/issues","licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"_id":"mojito-markup-test@0.0.1","dist":{"shasum":"b7ce00e0a51cb35dffdecbd55087b4d050ab4dc8","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.0.1.tgz","integrity":"sha512-cGv4kepqTDo7HcEb/qWU6a3XkbI2tnFHdEnz/F/n5Cn2uZHMc/mJEx2QgO06TcWOdct9kszcD1Q+ndhh9AxEeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUFzyaeLr9h3saq0wyX3zDgCJwMMac0Tux2eQwK53+0AiEAqYmYe0o1Mh6rOzV8SwtpD5wKTsJwrgcWvMOIv0J8F6s="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"gomezd","email":"david.garcia.mx@gmail.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"}]},"0.0.2":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.0.2","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.8"},"devDependencies":{"mojito":"0.8.x","mojito-cli":"0.1.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"_id":"mojito-markup-test@0.0.2","dist":{"shasum":"a62ced7f7d756e1485594c736bfbbdde751d212a","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.0.2.tgz","integrity":"sha512-DwU3iDSgigmVh/W4pYoscappsUdzzmu7uKj9b9mjSS97xlPmQyt4NqQeZz0A9NNTvR/HxFiWm6x7Es6sOkyhqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICqKCPhArhrdB+biZ1doDVlM4nLRgH+bs/wFRLtymwa6AiAE0xF1FMGar0ZGVT9nK1AFDIonWsb7ZW0wcXePNxlb7A=="}]},"_from":".","_npmVersion":"1.3.11-1","_npmUser":{"name":"jlecomte","email":"julien.lecomte@gmail.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}]},"0.0.5":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.0.5","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.8"},"devDependencies":{"mojito":"0.8.x","mojito-cli":"0.1.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"homepage":"https://github.com/yahoo/mojito-markup-test","_id":"mojito-markup-test@0.0.5","dist":{"shasum":"2c95eb066729cb4c0e41dc3b337922347d7a3528","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.0.5.tgz","integrity":"sha512-anBX1VG6yerkLqPJrsFxxUHx3oPglocRhL/w34Reun2AUgpuG636WqC1JM4cPPXBPNHlFAmuQf5f3LbkUFUTVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVjlO0gZHo14gyvky6lYcS3aTC8rewvYfR1dLbdqR3TgIhAM2B2Pfu1pZWo8QliAa1gM5Y2G/vF2JxJmgQlTNm+UMt"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"gomezd","email":"david.garcia.mx@gmail.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}]},"0.0.7":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.0.7","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.9"},"devDependencies":{"mojito":"0.9.x","mojito-cli":"0.2.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"homepage":"https://github.com/yahoo/mojito-markup-test","_id":"mojito-markup-test@0.0.7","dist":{"shasum":"6b5ca0296f3dd669ed65b5c06f6ebb7997c03973","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.0.7.tgz","integrity":"sha512-waSecBUbr9u7oMOw7qH13n3V0JKrPeTu8GcEps8XBJ56Z4ez/iLHsN4A0Eyqz34iytYV+48fuMinOe56vYrqIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq+S2qKHIARSHthaGv7GRBDeafb1NmLL6CsWozh1CHCgIgAJpLfyJqHl3YnAYMZSGPbbuGVAk6vp4Se54JdGAft5M="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"gomezd","email":"david.garcia.mx@gmail.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}]},"0.0.9":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.0.9","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.9"},"devDependencies":{"mojito":"0.9.x","mojito-cli":"0.2.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"homepage":"https://github.com/yahoo/mojito-markup-test","_id":"mojito-markup-test@0.0.9","dist":{"shasum":"22dacf8dd66c38e5ae2ccf35d9269af8ba1eefa7","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.0.9.tgz","integrity":"sha512-cB7K4Js5Odxm1aNgCzFjZSi0Mpchs7lXD58aL6n425/CB0pLUSsGyf1Kv3QcpSYY/ayJOSZMeurt76ZG8ev8bA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqJYc7m/7xC7oMw18nnDNmytSXMkBSFNfajfn06ATKIQIhALMitQe1reT2x2svE5tL2ZExZXNNmG1x/hANgcO0DPca"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"gomezd","email":"david.garcia.mx@gmail.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}]},"0.0.10":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.0.10","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.9"},"devDependencies":{"mojito":"0.9.x","mojito-cli":"0.2.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"homepage":"https://github.com/yahoo/mojito-markup-test","_id":"mojito-markup-test@0.0.10","dist":{"shasum":"c9805069fa4ce6627fec6b9851b41d37913b938e","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.0.10.tgz","integrity":"sha512-PpdnNxXRLHejTUEpZG2rjMvjbca1VmhRj6YlgWQmiEJuG4sWPq5toIdAdXpc7kdUbd/BNxw9lgtrdr3tjwWPJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQrVpqsDDVXaqPHN2N4FzI1iINrt+WlJSaY21SxbdQ4AiA+iHhTKmu9w3PqUF5zQtmpeDLPMrmBDsyV0ziYVZcRtg=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"gomezd","email":"david.garcia.mx@gmail.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}]},"0.1.0":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.1.0","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.9"},"dependencies":{"express":"3.5.x"},"devDependencies":{"mojito":"0.9.x","mojito-cli":"0.2.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"gitHead":"6765f371df81a8ff50084d9ba6e783e7dcd356c8","homepage":"https://github.com/yahoo/mojito-markup-test","_id":"mojito-markup-test@0.1.0","_shasum":"2bd3df1f5de9d6f3dddb5e7f22ee1c9fd8c63ae5","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"jimenez","email":"jimenez@yahoo-inc.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}],"dist":{"shasum":"2bd3df1f5de9d6f3dddb5e7f22ee1c9fd8c63ae5","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.1.0.tgz","integrity":"sha512-CUVul1zzI2qOYqCnc6chgXtwiQXYq7txMziK0B80cv33RK+bGSRoTyganepzk4c0OFd8ztvt8WOaM8z3jhSzRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhVr+HExY/VEEpD/dZZ9oxV8QiNOi47SDy++rFjZz+nQIgM4qdZSRYu34vuhCh9dqyDnqsmRTjeFPB44kFeDa/X/Y="}]}},"0.1.1":{"name":"mojito-markup-test","description":"Utility for view markup validation in mojito unit tests.","version":"0.1.1","author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"engines":{"node":"> 0.10","npm":"> 1.2","mojito":"> 0.9"},"dependencies":{"express":"3.5.x"},"devDependencies":{"mojito":"0.9.x","mojito-cli":"0.2.x","jsdom":"0.2.1","istanbul":"*"},"scripts":{"pretest":"mojito jslint app","test":"istanbul cover --yui=true --dir=artifacts/test/coverage ./node_modules/.bin/mojito -- test app .","posttest":"istanbul check-coverage --statements 80 --branches 80 --lines 80 --functions 70"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"licenses":[{"type":"BSD","url":"https://github.com/yahoo/mojito-markup-test/blob/master/LICENSE.txt"}],"yahoo":{"mojito":{"type":"bundle"}},"gitHead":"2ada58fd0e47e7b0e7de3f8844f52553e4123b97","homepage":"https://github.com/yahoo/mojito-markup-test","_id":"mojito-markup-test@0.1.1","_shasum":"b52dcdbd089b3e37cdc6865a45ee3ecb50eb8069","_from":".","_npmVersion":"1.4.15","_npmUser":{"name":"jimenez","email":"jimenez@yahoo-inc.com"},"maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}],"dist":{"shasum":"b52dcdbd089b3e37cdc6865a45ee3ecb50eb8069","tarball":"https://registry.npmjs.org/mojito-markup-test/-/mojito-markup-test-0.1.1.tgz","integrity":"sha512-yQV+NaDTrpq72P6Mafr0Zgu71lDfEJJ6d0damBQjYyCtU5urU1jyj+aa0Rc6cV9tpX0JyttVQX4ZMXgcBBSPdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCoh/Qz4hSFAGR/aAOPm7w7nJ+3Gw+ZJUsuD67fH5YdAiAqq5UPdYST/Kl6uDqs1fRoUtyaPAgK1Who7lku2T75qQ=="}]}}},"readme":"# Mojito markup test utility\r\n\r\nBuild Status\r\n------------\r\n\r\n[![Build Status](https://travis-ci.org/yahoo/mojito-markup-test.png)](https://travis-ci.org/yahoo/mojito-markup-test)\r\n\r\n\r\n## Overview\r\n\r\nThe markup layout test utility will render the mojit view with mock data and expose\r\nthe resulting markup to be validated using YUI Node module.\r\n\r\nMarkup tests written with this utility will be run as regular mojito unit tests\r\nusing `mojito test` command\r\n\r\n## Usage\r\n\r\nThree easy steps:\r\n 1. Require `mojito-markup-test`.\r\n 2. Add a mojit `spec`.\r\n 3. Render view and validate markup.\r\n\r\n### Mojit spec\r\n\r\nYou must specify the mojit and view to render, along with the mock data to use.\r\n\r\nYou can mock any data, including parameters, configuration, request and headers.\r\n```javascript\r\n//describe the mojit to render\r\nspec = {\r\n    //mojit type (dir name)\r\n    type: 'SimpleMojit',\r\n\r\n    //action to test\r\n    action: 'index',\r\n\r\n    //mojit params\r\n    params: {\r\n        url: {\r\n            p: 'Really!'\r\n        }\r\n    },\r\n\r\n    //mojit config (to use with ac.config.get() )\r\n    appConfig: {\r\n        foo: 'bar'\r\n    },\r\n\r\n    //mock request/response and headers data\r\n    req: {\r\n        p: 'flowers'\r\n    },\r\n    res: {},\r\n    headers: {\r\n         'Content-Type': 'text/html'\r\n    }\r\n};\r\n```\r\n\r\n### Rendering views\r\n\r\nOnce you have the mojit spec, you can render the view invoking the utility's `render` method.\r\n\r\n#### **render** (spec, callback)\r\n\r\nReceives the mojit spec and a callback function which will get the error (if any),\r\nthe rendered markup string, the mojit view meta object and the node (YUI Node)\r\nfor the resulting markup.\r\n```javascript\r\nMarkupTest.render(spec, function (err, markup, meta, node) {\r\n\r\n    //rendering done, resume paused test and verify\r\n    test.resume(function () {\r\n        var div, em, i, a, text;\r\n\r\n        A.isNull(err);\r\n        //we have markup\r\n        A.areNotEqual('', markup, 'Markup');\r\n        //we have meta\r\n        A.isNotNull(meta, 'Meta');\r\n\r\n        //we have a node\r\n        A.isNotUndefined(node, 'Parent node');\r\n        A.isNotNull(node, 'Parent node');\r\n\r\n        //use YUI Node methods to access rendered elements\r\n        div = node.one('.msg');\r\n        A.isNotUndefined(div, 'msg <div>');\r\n        A.isNotNull(div, 'msg <div>');\r\n    });\r\n```\r\n\r\n### Full example\r\n\r\n```javascript\r\nYUI.add('CompositeMojit_view-tests', function(Y) {\r\n\r\n    var suite = new YUITest.TestSuite('CompositeMojit'),\r\n        A = YUITest.Assert,\r\n        MarkupTest = Y.mojito.MarkupTest,\r\n\r\n        //Timeout for async testing\r\n        TIMEOUT = 1000;\r\n\r\n    suite.add(new YUITest.TestCase({\r\n\r\n        name: 'view',\r\n\r\n        'test index': function () {\r\n\r\n            var test = this,\r\n\r\n                //describe the mojit to render\r\n                spec = {\r\n                    //mojit type (dir name)\r\n                    type: 'CompositeMojit',\r\n\r\n                    //action to test\r\n                    action: 'index',\r\n\r\n                    //mojit params\r\n                    params: {\r\n                        url: {\r\n                            p: 'Really!'\r\n                        }\r\n                    },\r\n\r\n                    //mojit config (to use with ac.config.get() )\r\n                    config: {\r\n                        foo: 'bar'\r\n                    },\r\n\r\n                    //app level config (to use with ac.app)\r\n                    appConfig: {\r\n                        some: 'config param'\r\n                    },\r\n\r\n                    // We need to define the child mojits,\r\n                    // modules should be in the requires: [] as well to be loaded (see below)\r\n                    children: {\r\n                        'child_mojit': {\r\n                            type: 'ChildMojit'\r\n                        }\r\n                    }\r\n                };\r\n\r\n            MarkupTest.render(spec, function (err, markup, meta, node) {\r\n\r\n                //rendering done, resume paused test and verify\r\n                test.resume(function () {\r\n                    var div, em, i, a, text;\r\n\r\n                    A.isNull(err);\r\n                    //we have markup\r\n                    A.areNotEqual('', markup, 'Markup');\r\n                    //we have meta\r\n                    A.isNotNull(meta, 'Meta');\r\n\r\n                    //we have a node\r\n                    A.isNotUndefined(node, 'Parent node');\r\n                    A.isNotNull(node, 'Parent node');\r\n\r\n                    div = node.one('.msg');\r\n                    A.isNotUndefined(div, 'msg <div>');\r\n                    A.isNotNull(div, 'msg <div>');\r\n\r\n                    em = div.one('em');\r\n                    A.isNotUndefined(em, '<em>');\r\n                    A.isNotNull(em, '<em>');\r\n\r\n                    text = em.getContent();\r\n                    A.areEqual('Mojito is working.', text, 'Rendered message <em>');\r\n\r\n                    i = div.one('i');\r\n                    A.isNotUndefined(i, '<i>');\r\n                    A.isNotNull(i, '<i>');\r\n\r\n                    text = i.getContent();\r\n                    A.areEqual(spec.params.url.p, text, 'Rendered message <i>');\r\n\r\n                    a = div.one('a');\r\n                    A.isNotUndefined(a, '<a>');\r\n                    A.isNotNull(a, '<a>');\r\n\r\n                    text = a.getContent();\r\n                    A.areEqual(spec.config.foo, text, 'Rendered message <a>');\r\n                });\r\n            });\r\n\r\n            //we need this for async tests, wait till rendering done or timeout\r\n            test.wait(TIMEOUT);\r\n        }\r\n\r\n    }));\r\n\r\n    YUITest.TestRunner.add(suite);\r\n\r\n}, '0.0.1', {requires: [\r\n    'mojito-test',\r\n\r\n    //test rendering utility\r\n    'mojito-markup-test'\r\n\r\n    //parent mojit\r\n    'CompositeMojit',\r\n\r\n    //child mojit\r\n    'ChildMojit'\r\n]});\r\n```\r\n\r\nSee more [examples](https://github.com/yahoo/mojito-markup-test/tree/master/examples).\r\n","maintainers":[{"name":"gomezd","email":"david.garcia.mx@gmail.com"},{"name":"jarnoux","email":"arnoux.jacques@gmail.com"},{"name":"jimenez","email":"jimenez@yahoo-inc.com"},{"name":"jlecomte","email":"julien.lecomte@gmail.com"}],"time":{"modified":"2022-06-20T04:41:17.140Z","created":"2013-08-28T21:19:14.367Z","0.0.1":"2013-08-28T21:19:15.092Z","0.0.2":"2013-11-15T19:29:32.445Z","0.0.4":"2014-03-21T22:39:41.824Z","0.0.5":"2014-03-24T17:12:00.924Z","0.0.7":"2014-04-29T18:53:14.360Z","0.0.9":"2014-06-27T17:37:59.002Z","0.0.10":"2014-07-10T19:31:53.180Z","0.1.0":"2014-07-17T22:32:39.425Z","0.1.1":"2014-08-13T23:11:10.851Z"},"author":{"name":"David Gomez","email":"dgomez@yahoo-inc.com"},"repository":{"type":"git","url":"git://github.com/yahoo/mojito-markup-test.git"},"contributors":[{"name":"Julien Lecomte","email":"jlecomte@yahoo-inc.com"}],"bugs":{"url":"https://github.com/yahoo/mojito-markup-test/issues"},"readmeFilename":"README.md","users":{"davglass":true},"homepage":"https://github.com/yahoo/mojito-markup-test"}