mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(meme-generator): add opentype.js types, fix no-dropzone registry test
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
"@types/better-sqlite3": "^7.6.0",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/node": "^22.0.0",
|
||||
"@types/opentype.js": "^1.3.9",
|
||||
"@types/pdfkit": "^0.17.5",
|
||||
"@types/potrace": "^2.1.5",
|
||||
"@types/qrcode": "^1.5.6",
|
||||
|
||||
Generated
+8
@@ -190,6 +190,9 @@ importers:
|
||||
'@types/node':
|
||||
specifier: ^22.0.0
|
||||
version: 22.19.15
|
||||
'@types/opentype.js':
|
||||
specifier: ^1.3.9
|
||||
version: 1.3.9
|
||||
'@types/pdfkit':
|
||||
specifier: ^0.17.5
|
||||
version: 0.17.5
|
||||
@@ -3383,6 +3386,9 @@ packages:
|
||||
'@types/normalize-package-data@2.4.4':
|
||||
resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==}
|
||||
|
||||
'@types/opentype.js@1.3.9':
|
||||
resolution: {integrity: sha512-KOGywvDPncA4/tTWV5xKNhjpsoSSAHIx3mHOhL5l3XX+c6Xu2dQnHvGs7mRNQsQRte1EqmQ0cPQQ8Z14lkv+yw==}
|
||||
|
||||
'@types/pdfkit@0.17.5':
|
||||
resolution: {integrity: sha512-T3ZHnvF91HsEco5ClhBCOuBwobZfPcI2jaiSHybkkKYq4KhVIIurod94JVKvDIG0JXT6o3KiERC0X0//m8dyrg==}
|
||||
|
||||
@@ -9749,6 +9755,8 @@ snapshots:
|
||||
|
||||
'@types/normalize-package-data@2.4.4': {}
|
||||
|
||||
'@types/opentype.js@1.3.9': {}
|
||||
|
||||
'@types/pdfkit@0.17.5':
|
||||
dependencies:
|
||||
'@types/node': 22.19.15
|
||||
|
||||
@@ -296,8 +296,9 @@ describe("toolRegistry", () => {
|
||||
});
|
||||
|
||||
it("tools with no-dropzone display mode have a ResultsPanel", () => {
|
||||
const selfContainedTools = new Set(["meme-generator"]);
|
||||
for (const [toolId, entry] of toolRegistry) {
|
||||
if (entry.displayMode === "no-dropzone") {
|
||||
if (entry.displayMode === "no-dropzone" && !selfContainedTools.has(toolId)) {
|
||||
expect(entry.ResultsPanel, `missing ResultsPanel for ${toolId}`).toBeDefined();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user