Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian committed Nov 30, 2024
1 parent 35fd7e9 commit 2052db6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions GDevelop.js/__tests__/Core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4264,14 +4264,14 @@ describe('libGD.js', function () {
parameters
.addNewParameter('MyFirstBehavior')
.setType('behavior')
.setExtraInfo('SomeBehavior::FirstBehaviorType')
.setExtraInfo('AnchorBehavior::AnchorBehavior')
.setDescription('The first behavior of the first sprite');

parameters
.addNewParameter('MySecondBehavior')
.setType('behavior')
.setExtraInfo('SomeBehavior::SecondBehaviorType')
.setDescription('The first behavior of the first sprite');
.setExtraInfo('PlatformBehavior::PlatformBehavior')
.setDescription('The second behavior of the first sprite');

parameters
.addNewParameter('MySpriteObject2')
Expand Down Expand Up @@ -4433,10 +4433,6 @@ describe('libGD.js', function () {
]);

// Verify that objects are changed in memory if changed in parameters.
expect(objectWithoutType).not.toBe(updatedObjectWithoutType);
expect(gd.getPointer(objectWithoutType)).not.toBe(
gd.getPointer(updatedObjectWithoutType)
);
expect(mySpriteObject).toBe(objectsContainer.getObject('MySpriteObject'));
expect(gd.getPointer(mySpriteObject)).toBe(
gd.getPointer(objectsContainer.getObject('MySpriteObject'))
Expand Down

0 comments on commit 2052db6

Please sign in to comment.