Skip to content

Commit

Permalink
test: update describe
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm committed Mar 27, 2024
1 parent 18e733b commit f83bd16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ describe("mycolor", () => {
it("input rgba params, should get a rgba array", () => {
expect(mycolor(255, 165, 0, 1).rgba()).toEqual([255, 165, 0, 1]);
});
});

describe("mycolor built-in plugins", () => {
it("input hex, should get a rgba array", () => {
expect(mycolor("#ff3").rgba()).toEqual([255, 255, 51, 1]);
expect(mycolor("#ff36").rgba()).toEqual([255, 255, 51, 0.4]);
Expand Down

0 comments on commit f83bd16

Please sign in to comment.