Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/searls/jasmine-all
run jasmine from a single script tag
https://github.com/searls/jasmine-all
Last synced: 3 months ago
JSON representation
run jasmine from a single script tag
- Host: GitHub
- URL: https://github.com/searls/jasmine-all
- Owner: searls
- License: mit
- Created: 2012-07-03T15:00:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-10-10T14:29:12.000Z (over 8 years ago)
- Last Synced: 2024-10-19T23:08:26.459Z (3 months ago)
- Language: JavaScript
- Size: 139 KB
- Stars: 22
- Watchers: 5
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# jasmine-all
A single script to embed [jasmine](https://jasmine.github.io/) 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:
``` html
```
Check out the [examples](https://searls.github.io/jasmine-all/).
``` html
Jasmine
window.hugPanda = function(){ return "yay!"; };
describe('hugging pandas', function(){
it('makes me yell "yay!"', function(){
expect(hugPanda()).toBe("yay!");
});
});
```
The above markup should produce something like this:
![Screenshot](http://i.minus.com/iE2SLer3L7xxC.png "Screenshot")