Skip to content

Commit df4d86f

Browse files
committed
add vignette toJson
1 parent 8fc7f0b commit df4d86f

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
@@ -183,4 +183,15 @@ describe('Effect toJson()', () => {
183183
}
184184
]);
185185
});
186+
187+
it('effect.vignette', () => {
188+
const transformation = new Transformation()
189+
.addAction(Effect.vignette().strength(5));
190+
expect(transformation.toJson()).toStrictEqual( [
191+
{
192+
actionType: 'vignette',
193+
level: 50,
194+
}
195+
]);
196+
});
186197
});

0 commit comments

Comments
 (0)