vendredi 27 novembre 2015

How to create a mock session for session of AngularJs with jasmine

In AngularJs I have set a variable in the session object with the following code:

Session.setState({
    studentType: 1
};

In order to test a method in Jasmine I need to pass the a Session object to that method. How can a create a mock session variable?

Aucun commentaire:

Enregistrer un commentaire