I am just getting started with angular testing with jasmine.
I have the following sample test which only works when i pass 'done'
describe('JavaScript addition operator', function () {
it('adds two numbers together', function (done) {
done();
expect(1 + 2).toEqual(3);
});
});
if i do not pass done...i get the following error...
"Error: 'expect' was used when there was no current spec, this could be because an asynchronous test timed out"
is this correct? how do i fix it?
npm versions
------------------
karma: 0.12.35
karma-jasmine : 0.3.5
jasmine : 2.3.1
os: OSX yosemite