Skip to content

Commit 8fc7f0b

Browse files
committed
add noise toJson
1 parent bd3d13a commit 8fc7f0b

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
@@ -172,4 +172,15 @@ describe('Effect toJson()', () => {
172172
}
173173
]);
174174
});
175+
176+
it('effect.noise', () => {
177+
const transformation = new Transformation()
178+
.addAction(Effect.noise().level(50));
179+
expect(transformation.toJson()).toStrictEqual( [
180+
{
181+
actionType: 'noise',
182+
level: 50,
183+
}
184+
]);
185+
});
175186
});

0 commit comments

Comments
 (0)