- Will replace rake core_specs. - Remove obsolete dependencies & files -- most of these were for build tasks we are no longer using. Notably, rspec and spec_helper were deleted.
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
describe("toBeDefined", function() {
|
|
it("matches for defined values", function() {
|
|
var matcher = j$.matchers.toBeDefined(),
|
|
result;
|
|
|
|
|
|
result = matcher.compare('foo');
|
|
expect(result.pass).toBe(true);
|
|
});
|
|
|
|
it("fails when matching undefined values", function() {
|
|
var matcher = j$.matchers.toBeDefined(),
|
|
result;
|
|
|
|
result = matcher.compare(void 0);
|
|
expect(result.pass).toBe(false);
|
|
})
|
|
});
|