From dacd2f218a3774bd200f17c7e9274088043a25ef Mon Sep 17 00:00:00 2001 From: kaeff Date: Wed, 16 Sep 2015 02:12:50 +0200 Subject: 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 --- spec/signup_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/signup_spec.js') diff --git a/spec/signup_spec.js b/spec/signup_spec.js index 0bd8d48..89b0936 100644 --- a/spec/signup_spec.js +++ b/spec/signup_spec.js @@ -19,7 +19,7 @@ describe("Signup with srp var", function() { }); it("identifies after successful registration (INTEGRATION)", function(){ - var callback = sinon.spy(); + var callback = jasmine.createSpy(); srp.signedUp = callback; srp.signup(); this.expectRequest('/1/users.json', "user[login]=testuser&user[password_salt]=4c78c3f8&user[password_verifier]=474c26aa42d11f20544a00f7bf9711c4b5cf7aab95ed448df82b95521b96668e7480b16efce81c861870302560ddf6604c67df54f1d04b99d5bb9d0f02c6051ada5dc9d594f0d4314e12f876cfca3dcd99fc9c98c2e6a5e04298b11061fb8549a22cde0564e91514080df79bca1c38c682214d65d590f66b3719f954b078b83c", 'POST') -- cgit v1.2.3