mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
Updated Body.create unit test
This commit is contained in:
parent
eae1de0690
commit
112ec0034d
1 changed files with 4 additions and 3 deletions
|
@ -6,11 +6,12 @@ const {
|
|||
const Body = require("../../../src/body/Body");
|
||||
|
||||
describe('Body.create', () => {
|
||||
it('should create a body with the correct default properties', () => {
|
||||
it('should create a body with the correct default properties not providing any options', () => {
|
||||
// Arrange
|
||||
|
||||
let options = undefined;
|
||||
|
||||
// Act
|
||||
const result = Body.create();
|
||||
const result = Body.create(options);
|
||||
|
||||
// Assert
|
||||
assertFloat(result.angle, 0.);
|
||||
|
|
Loading…
Add table
Reference in a new issue