All Questions
5
questions
0
votes
0
answers
215
views
Squirejs : requirejs is not defined
We have an amd/requirejs based web app. We came to a point to add a unit testing to our code. Googling returned that squireJs is best amd-require based mocking library. after installing, The problem ...
1
vote
1
answer
2k
views
Global variable not being assigned in Jasmine unit test
I'm having some issues with a Jasmine unit-test seeing a global variable as undefined. I'm using Squire to mock some classes with the dependencies injected via RequireJS. Here is a trimmed down ...
1
vote
1
answer
2k
views
How to run code before (or after) each test in karma
I'm looking to use squire.js with karma and want to do a squire.clean() to clean away all the mocks before the next test suite (I'm using jasmine) is run but I cannot see a way to configure karma to ...
3
votes
1
answer
2k
views
Jasmine specs not being executed when injecting dependencies with Squire.js
I am attempting to run some Jasmine unit tests for a Backbone view, mocking out dependencies in Squire.
The dependencies of my view are a Baseview, an ICanHaz template and an i18n translation.
I ...
8
votes
2
answers
1k
views
Squire is breaking other tests
I'm using Karma, Jasmine, Jasmine.Async, Sinon and Chai.
The good news...this test works correctly. The dependency is mocked, spies get called, and intentionally breaking the test subject results in ...