mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Permits brush size of only 1-32 pixels.
This commit is contained in:
@@ -56,7 +56,7 @@ describe("PenSize test suite", function() {
|
||||
|
||||
penSizeService.init();
|
||||
// MAX_VALUE is 4
|
||||
penSizeService.setPenSize(5);
|
||||
penSizeService.setPenSize(33);
|
||||
expect(penSizeService.getPenSize()).toBe(1);
|
||||
// MIN_VALUE is 1
|
||||
penSizeService.setPenSize(0);
|
||||
@@ -70,4 +70,4 @@ describe("PenSize test suite", function() {
|
||||
// no event fired
|
||||
expect($.publish.calls.any()).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user