hello. here is my jasmine test.
describe("variable a", function () {
var a;
it("says hello", function () {
a = "Hello";
expect(a.toBe("Hello"));
});
});
i ran this and i get the following error:
Message: TypeError: undefined is not a constructor (evaluating 'a.toBe("Hello")')
i checked the output pane and saw this:
Error: ReferenceError: Can't find variable: $
at global code in file:///c:/users/jburdeos/source/workspaces/productrepository2/trunk/productrepository.joseph.test/scripts/_Chutzpah.b2b0cc0485f4372790dc5d234d0587d8.test.html (line 311)
While Running:c:\users\jburdeos\source\workspaces\productrepository2\trunk\productrepository.joseph.test\scripts\josephjasminetest.js
Error: ReferenceError: Can't find variable: $
at global code in file:///c:/users/jburdeos/source/workspaces/productrepository2/trunk/productrepository.joseph.test/scripts/_Chutzpah.b2b0cc0485f4372790dc5d234d0587d8.test.html (line 443)
While Running:c:\users\jburdeos\source\workspaces\productrepository2\trunk\productrepository.joseph.test\scripts\josephjasminetest.js
Error: ReferenceError: Can't find variable: $
at global code in file:///c:/users/jburdeos/source/workspaces/productrepository2/trunk/productrepository.joseph.test/scripts/_Chutzpah.b2b0cc0485f4372790dc5d234d0587d8.test.html (line 729)
While Running:c:\users\jburdeos\source\workspaces\productrepository2\trunk\productrepository.joseph.test\scripts\josephjasminetest.js
i tried googling for solutions but to no avail. can anyone help me?
thanks in advance