summaryrefslogtreecommitdiff
path: root/spec/helper.js
diff options
context:
space:
mode:
authorkaeff <hi@kaeff.net>2015-09-16 02:12:50 +0200
committerkaeff <hi@kaeff.net>2015-09-16 02:35:55 +0200
commitdacd2f218a3774bd200f17c7e9274088043a25ef (patch)
tree14ee131f49bfa103f3f46547decb69d38745bd42 /spec/helper.js
parent8f33d32d40b1e21ae7fb9a92c78a275422af4217 (diff)
Run tests via cli using karma & PhantomJS for Travis
Instead of jasmine's HTML runner, use karma to run specs. karma & all other dependencies are installed via npm and executed via node.js. This allows TravisCI to execute the test, and as a side effect, bumps the versions on the testing toolchain. - Install node.js - Run `npm install` once to download dependencies. - Run `npm test` to run all tests Things to bear in mind: - This commit adds general project information in `package.js` - `karma.conf.js` specifies the order in which src, spec and lib files are loaded - Switch to jasmine spies instead of sinon
Diffstat (limited to 'spec/helper.js')
-rw-r--r--spec/helper.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/helper.js b/spec/helper.js
index 8bae2c6..d1c699b 100644
--- a/spec/helper.js
+++ b/spec/helper.js
@@ -42,3 +42,7 @@ var specHelper = (function() {
}
})();
+
+beforeEach(function () {
+ setFixtures("<form action='.' onsubmit='return register()'> <table> <tr><td>Username:</td><td><input type='text' id='srp_username' value='testuser' /></td></tr> <tr><td>Password:</td><td><input type='password' id='srp_password' value='password'/></td></tr> </table> <input type='submit'/> </form> ");
+});