fix: update icon size property from 'sizes' to 'size' in manifest and schema files

This commit is contained in:
Alexander Sklar 2025-10-30 16:26:55 -07:00
commit 257af30812
No known key found for this signature in database
2 changed files with 26 additions and 26 deletions

View file

@ -263,12 +263,12 @@ describe("init functions", () => {
icons: [
{
src: "assets/icons/icon-16-light.png",
sizes: "16x16",
size: "16x16",
theme: "light",
},
{
src: "assets/icons/icon-16-dark.png",
sizes: "16x16",
size: "16x16",
theme: "dark",
},
],
@ -341,12 +341,12 @@ describe("init functions", () => {
icons: [
{
src: "assets/icons/icon-16-light.png",
sizes: "16x16",
size: "16x16",
theme: "light",
},
{
src: "assets/icons/icon-16-dark.png",
sizes: "16x16",
size: "16x16",
theme: "dark",
},
],

View file

@ -76,12 +76,12 @@ describe("McpbManifestSchema", () => {
icons: [
{
src: "assets/icons/icon-16-light.png",
sizes: "16x16",
size: "16x16",
theme: "light",
},
{
src: "assets/icons/icon-16-dark.png",
sizes: "16x16",
size: "16x16",
theme: "dark",
},
],
@ -320,7 +320,7 @@ describe("McpbManifestSchema", () => {
it("rejects icons with invalid size format", () => {
const manifest = {
...base,
icons: [{ src: "assets/icon.png", sizes: "16", theme: "light" }],
icons: [{ src: "assets/icon.png", size: "16", theme: "light" }],
};
const result = McpbManifestSchema.safeParse(manifest);
expect(result.success).toBe(false);
@ -329,7 +329,7 @@ describe("McpbManifestSchema", () => {
it("allows icons without theme", () => {
const manifest = {
...base,
icons: [{ src: "assets/icon.png", sizes: "128x128" }],
icons: [{ src: "assets/icon.png", size: "128x128" }],
};
const result = McpbManifestSchema.safeParse(manifest);
expect(result.success).toBe(true);