ca60244aa3
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
14 lines
460 B
TypeScript
14 lines
460 B
TypeScript
import * as utils from "../utils";
|
|
|
|
describe("Test isTransparent", () => {
|
|
it("should return true when color is rgb transparent", () => {
|
|
expect(utils.isTransparent("#ff00")).toEqual(true);
|
|
expect(utils.isTransparent("#fff00000")).toEqual(true);
|
|
expect(utils.isTransparent("transparent")).toEqual(true);
|
|
});
|
|
|
|
it("should return false when color is not transparent", () => {
|
|
expect(utils.isTransparent("#ced4da")).toEqual(false);
|
|
});
|
|
});
|