javascript - Checking variable value with Jasmine -


how can check variable value jasmine? imagine example have function:

function mytestfunction(){    var z = 100; } 

how can test jasmine if value of variable "z" 100?

something like:

describe("test 1", function () {     beforeeach(function () {         setuphtmlfixture();                                          $('#show').trigger("onmouseover");                           });      it("check if value contains 100", function () {         expect($(var z)).toequal("100");                 }); }); 


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -