run jasmine from a single script tag
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Latest commit 8d14e94 Oct 10, 2016 @searls committed on GitHub Merge pull request #6 from mortonfox/patch-1
Update Jasmine link

README.md

jasmine-all

A single script to embed jasmine specs in a trivial HTML file or online with something like a JSFiddle very easily.

Here's the URL:

https://searls.github.io/jasmine-all/jasmine-all-min.js

Here's what that URL looks like in a script tag:

<script type="text/javascript" src="https://searls.github.io/jasmine-all/jasmine-all-min.js"></script>

Check out the examples.

<!DOCTYPE html>
<html>
  <head>
    <title>Jasmine</title>
  </head>
  <body>
    <script type="text/javascript" src="https://searls.github.io/jasmine-all/jasmine-all-min.js"></script>

    <script type="text/javascript">
      window.hugPanda = function(){ return "yay!"; };
    </script>

    <script type="text/javascript">
      describe('hugging pandas', function(){
        it('makes me yell "yay!"', function(){
          expect(hugPanda()).toBe("yay!");
        });
      });
    </script>
  </body>
</html>

The above markup should produce something like this:

Screenshot