Skip to content

Commit b92df83

Browse files
committed
add blackwhite tojson
1 parent 013faff commit b92df83

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
@@ -126,4 +126,15 @@ describe('Effect toJson()', () => {
126126
}
127127
]);
128128
});
129+
130+
it('effect.blackwhite', () => {
131+
const transformation = new Transformation()
132+
.addAction(Effect.blackwhite().threshold(40));
133+
expect(transformation.toJson()).toStrictEqual( [
134+
{
135+
actionType: 'blackwhite',
136+
level: 40,
137+
}
138+
]);
139+
});
129140
});

0 commit comments

Comments
 (0)