0
0
Fork 0
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:
gsenden 2024-05-20 17:22:31 +02:00
parent eae1de0690
commit 112ec0034d

View file

@ -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.);