Starts Jasmine tests automatically after main has loaded
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package.json
steal-jasmine.js

README.md

steal-jasmine

Provides an easy way to run Jasmine tests using StealJS.

Install

Install with npm:

npm install steal-jasmine --save-dev

Use

Add the Steal tag to your page:

<script src="node_modules/steal/steal.js"
  data-main="test/test"></script>

Then import steal-jasmine in yourtest/test.js file and write your tests:

import jasmineRequire from "steal-jasmine";

//Tests!
import foo from "bar";

it("A test", function(){
	expect(foo).toBe(true);
});

##License

MIT