01332ebead
The rationale is this: the spec string describes the expected behavior unconditionally. The code examples, on the other hand, set up an expectation that is tested with the call to the expect method. The code examples can violate the expectation, but the spec string does not. The value of the spec string is as clearly as possible describing the behavior. Including “should” in that description adds no value. (From http://rubyspec.org/style_guide/)
18 lines
415 B
JavaScript
18 lines
415 B
JavaScript
describe('Circle', function () {
|
|
describe('#getBounds', function () {
|
|
|
|
var circle;
|
|
|
|
beforeEach(function () {
|
|
circle = L.circle([50, 30], 200);
|
|
});
|
|
|
|
it('returns bounds', function () {
|
|
var bounds = circle.getBounds();
|
|
|
|
expect(bounds.getSouthWest().equals([49.998203369, 29.997204939])).toBeTruthy();
|
|
expect(bounds.getNorthEast().equals([50.001796631, 30.002795061])).toBeTruthy();
|
|
});
|
|
});
|
|
});
|