fix: update icon size property from 'sizes' to 'size' in manifest and schema files
This commit is contained in:
parent
406e7bb5bd
commit
257af30812
2 changed files with 26 additions and 26 deletions
|
|
@ -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",
|
||||
},
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue