Skip to content

Commit 5b63e4b

Browse files
committed
chore(release): Fix tests
1 parent 529d4c1 commit 5b63e4b

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

src/assets/icons/png_files.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import fg from "fast-glob";
33
describe("./assets/icons/*.png", () => {
44
test("length", () => {
55
const icons: string[] = fg.sync("./assets/icons/*.png");
6-
expect(icons.length).toBe(1201);
6+
expect(icons.length).toBe(1265);
77
});
88
});

src/assets/icons_object.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getAllIconsObject } from "./icons_object";
33
describe("getAllIconsObject()", () => {
44
test("length", () => {
55
const obj = getAllIconsObject();
6-
expect(obj.length).toBe(1201);
6+
expect(obj.length).toBe(1265);
77
});
88

99
test("icon: bootstrap", () => {

src/icons.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ test("toResponseItem()", () => {
2424

2525
test("getAllIcons()", () => {
2626
const allIcons = getAllIcons();
27-
expect(allIcons.items.length).toBe(1201);
27+
expect(allIcons.items.length).toBe(1265);
2828

2929
const actual = allIcons.items.find((icon) => icon.arg === "bootstrap");
3030
const expected = {

src/search.test.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe("search()", () => {
148148
'"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill=\\"currentColor\\" class=\\"bi bi-bootstrap-reboot\\" viewBox=\\"0 0 16 16\\">\\n <path d=\\"M1.161 8a6.84 6.84 0 1 0 6.842-6.84.58.58 0 0 1 0-1.16 8 8 0 1 1-6.556 3.412l-.663-.577a.58.58 0 0 1 .227-.997l2.52-.69a.58.58 0 0 1 .728.633l-.332 2.592a.58.58 0 0 1-.956.364l-.643-.56A6.812 6.812 0 0 0 1.16 8z\\"/>\\n <path d=\\"M6.641 11.671V8.843h1.57l1.498 2.828h1.314L9.377 8.665c.897-.3 1.427-1.106 1.427-2.1 0-1.37-.943-2.246-2.456-2.246H5.5v7.352h1.141zm0-3.75V5.277h1.57c.881 0 1.416.499 1.416 1.32 0 .84-.504 1.324-1.386 1.324h-1.6z\\"/>\\n</svg>"',
149149
},
150150
},
151-
refIndex: 158,
151+
refIndex: 166,
152152
score: 1.7028485066985596e-12,
153153
},
154154
{
@@ -162,7 +162,7 @@ describe("search()", () => {
162162
'"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill=\\"currentColor\\" class=\\"bi bi-bootstrap\\" viewBox=\\"0 0 16 16\\">\\n <path d=\\"M5.062 12h3.475c1.804 0 2.888-.908 2.888-2.396 0-1.102-.761-1.916-1.904-2.034v-.1c.832-.14 1.482-.93 1.482-1.816 0-1.3-.955-2.11-2.542-2.11H5.062V12zm1.313-4.875V4.658h1.78c.973 0 1.542.457 1.542 1.237 0 .802-.604 1.23-1.764 1.23H6.375zm0 3.762V8.162h1.822c1.236 0 1.887.463 1.887 1.348 0 .896-.627 1.377-1.811 1.377H6.375z\\"/>\\n <path d=\\"M0 4a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4zm4-3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H4z\\"/>\\n</svg>"',
163163
},
164164
},
165-
refIndex: 159,
165+
refIndex: 167,
166166
score: 0.19140625,
167167
},
168168
{
@@ -176,9 +176,23 @@ describe("search()", () => {
176176
'"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill=\\"currentColor\\" class=\\"bi bi-bootstrap-fill\\" viewBox=\\"0 0 16 16\\">\\n <path d=\\"M6.375 7.125V4.658h1.78c.973 0 1.542.457 1.542 1.237 0 .802-.604 1.23-1.764 1.23H6.375zm0 3.762h1.898c1.184 0 1.81-.48 1.81-1.377 0-.885-.65-1.348-1.886-1.348H6.375v2.725z\\"/>\\n <path d=\\"M4.002 0a4 4 0 0 0-4 4v8a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4V4a4 4 0 0 0-4-4h-8zm1.06 12V3.545h3.399c1.587 0 2.543.809 2.543 2.11 0 .884-.65 1.675-1.483 1.816v.1c1.143.117 1.904.931 1.904 2.033 0 1.488-1.084 2.396-2.888 2.396H5.062z\\"/>\\n</svg>"',
177177
},
178178
},
179-
refIndex: 157,
179+
refIndex: 165,
180180
score: 0.20357702451072787,
181181
},
182+
{
183+
item: {
184+
categories: ["UI and keyboard"],
185+
name: "border-bottom",
186+
svg: {
187+
raw:
188+
'"<svg xmlns=\\"http://www.w3.org/2000/svg\\" width=\\"16\\" height=\\"16\\" fill=\\"currentColor\\" class=\\"bi bi-border-bottom\\" viewBox=\\"0 0 16 16\\">\\n <path d=\\"M.969 0H0v.969h.5V1h.469V.969H1V.5H.969V0zm.937 1h.938V0h-.938v1zm1.875 0h.938V0H3.78v1zm1.875 0h.938V0h-.938v1zM7.531.969V1h.938V.969H8.5V.5h-.031V0H7.53v.5H7.5v.469h.031zM9.406 1h.938V0h-.938v1zm1.875 0h.938V0h-.938v1zm1.875 0h.938V0h-.938v1zm1.875 0h.469V.969h.5V0h-.969v.5H15v.469h.031V1zM1 2.844v-.938H0v.938h1zm6.5-.938v.938h1v-.938h-1zm7.5 0v.938h1v-.938h-1zM1 4.719V3.78H0v.938h1zm6.5-.938v.938h1V3.78h-1zm7.5 0v.938h1V3.78h-1zM1 6.594v-.938H0v.938h1zm6.5-.938v.938h1v-.938h-1zm7.5 0v.938h1v-.938h-1zM.5 8.5h.469v-.031H1V7.53H.969V7.5H.5v.031H0v.938h.5V8.5zm1.406 0h.938v-1h-.938v1zm1.875 0h.938v-1H3.78v1zm1.875 0h.938v-1h-.938v1zm2.813 0v-.031H8.5V7.53h-.031V7.5H7.53v.031H7.5v.938h.031V8.5h.938zm.937 0h.938v-1h-.938v1zm1.875 0h.938v-1h-.938v1zm1.875 0h.938v-1h-.938v1zm1.875 0h.469v-.031h.5V7.53h-.5V7.5h-.469v.031H15v.938h.031V8.5zM0 9.406v.938h1v-.938H0zm7.5 0v.938h1v-.938h-1zm8.5.938v-.938h-1v.938h1zm-16 .937v.938h1v-.938H0zm7.5 0v.938h1v-.938h-1zm8.5.938v-.938h-1v.938h1zm-16 .937v.938h1v-.938H0zm7.5 0v.938h1v-.938h-1zm8.5.938v-.938h-1v.938h1zM0 15h16v1H0v-1z\\"/>\\n</svg>"',
189+
},
190+
tags: ["borders"],
191+
title: "Border bottom",
192+
},
193+
refIndex: 169,
194+
score: 0.5028302621905112,
195+
},
182196
{
183197
item: {
184198
categories: ["Misc"],
@@ -190,7 +204,7 @@ describe("search()", () => {
190204
tags: ["reading", "book", "label", "tag", "category"],
191205
title: "Bookmark heart fill",
192206
},
193-
refIndex: 145,
207+
refIndex: 153,
194208
score: 0.6684759217372512,
195209
},
196210
{
@@ -204,12 +218,12 @@ describe("search()", () => {
204218
tags: ["reading", "book", "label", "tag", "category"],
205219
title: "Bookmark heart",
206220
},
207-
refIndex: 146,
221+
refIndex: 154,
208222
score: 0.6684759217372512,
209223
},
210224
];
211225

212-
expect(actual.length).toBe(5);
226+
expect(actual.length).toBe(6);
213227
expect(actual).toStrictEqual(expected);
214228
});
215229
});

0 commit comments

Comments
 (0)