mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Additional Icons (#43)
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
||||
festivals,
|
||||
allOf,
|
||||
features,
|
||||
STAR_WARS,
|
||||
} from "../src/icon";
|
||||
|
||||
describe("SvgIcon", () => {
|
||||
@@ -635,6 +636,31 @@ describe("festivals", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe("on may 4", () => {
|
||||
beforeEach(() => {
|
||||
now = dayjs("2022/5/4");
|
||||
});
|
||||
|
||||
it("should use the undefined colors, so no color", () => {
|
||||
const result = original
|
||||
.apply(
|
||||
features({
|
||||
viewPortIncreasePercent: 12,
|
||||
backgroundColor: "shouldNotBeUsed",
|
||||
foregroundColor: "shouldNotBeUsed",
|
||||
})
|
||||
)
|
||||
.apply(festivals(clock)) as DummyIcon;
|
||||
|
||||
expect(STAR_WARS.map(it => it.svg)).toContain(result.svg);
|
||||
expect(result.features).toEqual({
|
||||
viewPortIncreasePercent: 12,
|
||||
backgroundColor: undefined,
|
||||
foregroundColor: undefined,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("on cny", () => {
|
||||
describe("2022", () => {
|
||||
beforeEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user