{"id":10357,"date":"2013-05-14T10:30:16","date_gmt":"2013-05-14T05:00:16","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=10357"},"modified":"2015-07-08T17:52:34","modified_gmt":"2015-07-08T12:22:34","slug":"node-js-unit-testing-with-jasmine-framework","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/","title":{"rendered":"Node.js: Unit Testing with Jasmine framework"},"content":{"rendered":"<p style=\"text-align: left;\"><strong>Jasmine<\/strong> is a framework which is <a href=\"https:\/\/2thenew.xyz\/mean-node-js-development-consulting\">used for testing <strong>node.js<\/strong> code<\/a> or <strong>javascript<\/strong> code.<\/p>\n<p><strong>Installation<\/strong><\/p>\n<p>To install the latest official version, use <strong>NPM:<\/strong><\/p>\n<p>[js]npm install jasmine-node -g[\/js]<\/p>\n<p>Write the specifications for your code in *.js and *.coffee files in the spec\/ directory<\/p>\n<p><strong>Execution<\/strong><\/p>\n<p>After installing the npm package, you can run it with:<\/p>\n<p>[js]jasmine-node spec\/filename.js<br \/>\njasmine-node spec\/filename.coffee[\/js]<\/p>\n<p>For executing multiple test files you can provide multiple filenames as an argument to jasmine-node command.<br \/>\n<strong>Key features :<\/strong><\/p>\n<ol>\n<li>Behavior driven.<\/li>\n<li>It does not require DOM for testing.<\/li>\n<li>Clean and obvious syntax.<\/li>\n<\/ol>\n<p><strong>Test Cases :<br \/>\n<\/strong><\/p>\n<p><strong>SUITES<\/strong><br \/>\nCall to a global function <strong>&#8216;describe&#8217;<\/strong> which takes arguments a String and function.\u00a0The function is a block of code that implements the suite.The String describes the title for the suit.<\/p>\n<p><strong>SPECS<\/strong><br \/>\nCall to global Jasmine function <strong>&#8216;it&#8217;,<\/strong> which like &#8216;describe&#8217; takes a string and a function.\u00a0The string is a title for this spec and the function is the spec, or test.\u00a0A spec contains one or more expectations that examine the state of the code under test,their can be as many &#8216;it&#8217; functions in describe block.<\/p>\n<p><strong>EXPECTATION<\/strong><br \/>\nExpectation in jasmine is an assertion which results either true or false.\u00a0Their can be as many assertions in a spec.\u00a0Expectations are genrated with the function <strong>&#8216;expect&#8217;<\/strong> which takes an argument which is the actual value.\u00a0It is chained with a Matcher function, which takes the expected value.<\/p>\n<p><strong>MATCHERS<\/strong><\/p>\n<p>Each matcher implements the Boolean comparison between actual and expected\u00a0value. Matchers\u00a0are used to compare both the values and if all matchers matches or return true only then test is considered as passed else it is considered as failure. Some of the matchers functions are &#8216;toBe&#8217;, &#8216;toBeTruthy&#8217; etc.<br \/>\nSome examples are as follows:<\/p>\n<p>[js]expect(x).toEqual(y); \/\/ compares objects or primitives x and y and passes if they are equivalent<br \/>\nexpect(x).toBe(y); \/\/ compares objects or primitives x and y and passes if they are the same object<br \/>\nexpect(x).toMatch(pattern); \/\/compares x to string or regular expression pattern and passes if they match[\/js]<\/p>\n<p><strong>beforeEach() and afterEach()<\/strong><\/p>\n<p>Function\u00a0<strong>&#8216;beforeEach&#8217;<\/strong> performs task that is to be performed before test begins and\u00a0<strong>&#8216;afterEach&#8217;<\/strong> performs task that is to be performed after test finished execution.<\/p>\n<p><strong>Sample test<\/strong><\/p>\n<p>[js]<br \/>\ndescribe(&#8220;A suite&#8221;, function() {<br \/>\nvar a;<\/p>\n<p>it(&#8220;A spec&#8221;, function() {<br \/>\na = true;<\/p>\n<p>expect(a).toBe(true);<br \/>\nexpect(a).not.toBe(false);<br \/>\n});<br \/>\n});<br \/>\n[\/js]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js [&hellip;]<\/p>\n","protected":false},"author":66,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":2,"footnotes":""},"categories":[1],"tags":[1158,55,1124,1159],"class_list":["post-10357","post","type-post","status-publish","format-standard","hentry","category-technology","tag-jasmine","tag-javascript","tag-node-js","tag-unit-testing"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Sahil Chitkara\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"technology\" \/>\n\t\t<meta property=\"article:tag\" content=\"jasmine\" \/>\n\t\t<meta property=\"article:tag\" content=\"javascript\" \/>\n\t\t<meta property=\"article:tag\" content=\"node.js\" \/>\n\t\t<meta property=\"article:tag\" content=\"unit testing\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2013-05-14T05:00:16+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-08T12:22:34+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#article\",\"name\":\"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog\",\"headline\":\"Node.js: Unit Testing with Jasmine framework\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2013-05-14T10:30:16+05:30\",\"dateModified\":\"2015-07-08T17:52:34+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#webpage\"},\"articleSection\":\"Technology, jasmine, javascript, node.js, unit testing\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#listItem\",\"name\":\"Node.js: Unit Testing with Jasmine framework\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#listItem\",\"position\":3,\"name\":\"Node.js: Unit Testing with Jasmine framework\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/\",\"name\":\"Sahil Chitkara\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b91bdfc498b589781ffafd1e1add2085872ca7c745e54e167c93abc1853439f4?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Sahil Chitkara\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/\",\"name\":\"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog\",\"description\":\"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\\\/js] Write the specifications for your code in *.js and *.coffee files in the spec\\\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\\\/filename.js\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/node-js-unit-testing-with-jasmine-framework\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/sahil\\\/#author\"},\"datePublished\":\"2013-05-14T10:30:16+05:30\",\"dateModified\":\"2015-07-08T17:52:34+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog","description":"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js","canonical_url":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#article","name":"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog","headline":"Node.js: Unit Testing with Jasmine framework","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/sahil\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2013-05-14T10:30:16+05:30","dateModified":"2015-07-08T17:52:34+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#webpage"},"articleSection":"Technology, jasmine, javascript, node.js, unit testing"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#listItem","name":"Node.js: Unit Testing with Jasmine framework"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#listItem","position":3,"name":"Node.js: Unit Testing with Jasmine framework","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/sahil\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/sahil\/","name":"Sahil Chitkara","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b91bdfc498b589781ffafd1e1add2085872ca7c745e54e167c93abc1853439f4?s=96&d=mm&r=g","width":96,"height":96,"caption":"Sahil Chitkara"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/","name":"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog","description":"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/sahil\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/sahil\/#author"},"datePublished":"2013-05-14T10:30:16+05:30","dateModified":"2015-07-08T17:52:34+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog","og:description":"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js","og:url":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":["technology","jasmine","javascript","node.js","unit testing"],"article:published_time":"2013-05-14T05:00:16+00:00","article:modified_time":"2015-07-08T12:22:34+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Node.js: Unit Testing with Jasmine framework | TO THE NEW Blog","twitter:description":"Jasmine is a framework which is used for testing node.js code or javascript code. Installation To install the latest official version, use NPM: [js]npm install jasmine-node -g[\/js] Write the specifications for your code in *.js and *.coffee files in the spec\/ directory Execution After installing the npm package, you can run it with: [js]jasmine-node spec\/filename.js","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"10357","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 13:05:38","updated":"2024-02-29 08:43:24","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tNode.js: Unit Testing with Jasmine framework\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"Node.js: Unit Testing with Jasmine framework","link":"https:\/\/2thenew.xyz\/blog\/node-js-unit-testing-with-jasmine-framework\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/10357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=10357"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/10357\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=10357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=10357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=10357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}