Skip to content

Commit ba013b9

Browse files
committed
add accelerate toJson
1 parent b92df83 commit ba013b9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

__TESTS__/unit/toJson/effect.toJson.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,15 @@ describe('Effect toJson()', () => {
137137
}
138138
]);
139139
});
140+
141+
it('effect.accelerate', () => {
142+
const transformation = new Transformation()
143+
.addAction(Effect.accelerate().rate(5));
144+
expect(transformation.toJson()).toStrictEqual( [
145+
{
146+
actionType: 'accelerate',
147+
level: 5,
148+
}
149+
]);
150+
});
140151
});

0 commit comments

Comments
 (0)