You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, Node.js projects, or anywhere that JavaScript can run.
The best way to use this component is to define it as a dev dependency in your component.json file.
"development": {
"bestander/jasmine": "*"
}
Then in the spec-runner HTML do
<!-- no links to jasmine standalone component --><!-- path to a `component(1)` built package --><scripttype="text/javascript" src="../build/build-dev.js"></script><scripttype="text/javascript" src="../build/build-dev.css"></script><!-- list of your test spec files --><scripttype="text/javascript" src="logic.spec.js"></script><scripttype="text/javascript" src="moreLogic.spec.js"></script><scripttype="text/javascript">(function(){varcurrentWindowOnload;varhtmlReporter;varjasmine=require("<host name>/deps/jasmine").jasmine;varjasmineEnv=jasmine.getEnv();jasmineEnv.updateInterval=1000;htmlReporter=newjasmine.HtmlReporter();jasmineEnv.addReporter(htmlReporter);jasmineEnv.specFilter=function(spec){returnhtmlReporter.specFilter(spec);};currentWindowOnload=window.onload;window.onload=function(){if(currentWindowOnload){currentWindowOnload();}execJasmine();};functionexecJasmine(){jasmineEnv.execute();}})();</script>