Rectangle test updates (#3578)
* Rectangle tests
Converted to arrow functions
Added new tests and new cases to existing tests
Removed unreachable ternary in Rectangle.pad()
Fixed invalid comparison in Rectangle.enlarge()
Changed param name in Rectangle.enlarge(rectangle) to match other methods

* Reverted ternary change in Rectangle.pad()
Removed empty Rectangle check in Rectangle.enlarge()
Additional Rectangle.fit() test

* Fixed Rectangle.enlarge() test to account for changed logic if passed Rectangle is empty

* Changed arrow functions back to regular functions in Rectangle.js tests
1 parent 1588177 commit 5f76782f2b1e898a5b32f584bc4b6faab88c4bdb
@Scott Collier Scott Collier authored on 16 Jan 2017
Matt Karl committed on 16 Jan 2017
Showing 2 changed files
View
src/core/math/shapes/Rectangle.js
View
test/core/Rectangle.js