mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix gif export transparency issue
This commit is contained in:
@@ -5,25 +5,25 @@ describe("Color utils", function() {
|
||||
|
||||
it("returns a color when provided with array of colors", function() {
|
||||
// when/then
|
||||
var unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#ffffff', '#feffff', '#fdffff']);
|
||||
var unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#ffff00', '#feff00', '#fdff00']);
|
||||
// verify
|
||||
expect(unusedColor).toBe('#FCFFFF');
|
||||
expect(unusedColor).toBe('#FCFF00');
|
||||
|
||||
// when/then
|
||||
unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#fcffff', '#feffff', '#fdffff']);
|
||||
unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#fcff00', '#feff00', '#fdff00']);
|
||||
// verify
|
||||
expect(unusedColor).toBe('#FFFFFF');
|
||||
expect(unusedColor).toBe('#FFFF00');
|
||||
});
|
||||
|
||||
it("returns a color for an empty array", function() {
|
||||
// when/then
|
||||
var unusedColor = pskl.utils.ColorUtils.getUnusedColor([]);
|
||||
// verify
|
||||
expect(unusedColor).toBe('#FFFFFF');
|
||||
expect(unusedColor).toBe('#FFFF00');
|
||||
|
||||
// when/then
|
||||
unusedColor = pskl.utils.ColorUtils.getUnusedColor();
|
||||
// verify
|
||||
expect(unusedColor).toBe('#FFFFFF');
|
||||
expect(unusedColor).toBe('#FFFF00');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user