Move spec files back out of spec/javascripts
- Jasmine gem allows us to specify a path to jasmine.yml via ENV [finish #58126010]
This commit is contained in:
17
spec/core/matchers/toBeSpec.js
Normal file
17
spec/core/matchers/toBeSpec.js
Normal file
@@ -0,0 +1,17 @@
|
||||
describe("toBe", function() {
|
||||
it("passes when actual === expected", function() {
|
||||
var matcher = j$.matchers.toBe(),
|
||||
result;
|
||||
|
||||
result = matcher.compare(1, 1);
|
||||
expect(result.pass).toBe(true);
|
||||
});
|
||||
|
||||
it("fails when actual !== expected", function() {
|
||||
var matcher = j$.matchers.toBe(),
|
||||
result;
|
||||
|
||||
result = matcher.compare(1, 2);
|
||||
expect(result.pass).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user