Jasmine testjs installer fails on "pending" | 'undefined' is not a function (evaluating "expect (true) .toBe (true)")
I have a simple spec:
describe("A suite", function() {
it("contains spec with an expectation", function() {
expect(true).toBe(true);
});
});
And when I run grunt jasmine
I get:
Running "jasmine:src" (jasmine) task
Testing jasmine specs via PhantomJS
A suite
× contains spec with an expectation
TypeError: 'undefined' is not a function (evaluating 'expect(true).toBe(tru
e)') in file:///C:/Users/long-path-to-spec/testing-spec.js (line 4) (1)
1 spec in 0s.
>> 1 failures
Warning: Task "jasmine:src" failed. Use --force to continue.
Aborted due to warnings.
The spec seems to be working ... it seems to know what "describe" and "this" are, but doesn't seem to know "expect"?
Any ideas?
+3
source to share
No one has answered this question yet
Check out similar questions: