✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
673 B
TypeScript
29 lines
673 B
TypeScript
// @ts-ignore TS6133
|
|
import { expect, test } from "vitest";
|
|
|
|
import * as z from "zod/v3";
|
|
import { util } from "../helpers/util.js";
|
|
|
|
test("check any inference", () => {
|
|
const t1 = z.any();
|
|
t1.optional();
|
|
t1.nullable();
|
|
type t1 = z.infer<typeof t1>;
|
|
util.assertEqual<t1, any>(true);
|
|
});
|
|
|
|
test("check unknown inference", () => {
|
|
const t1 = z.unknown();
|
|
t1.optional();
|
|
t1.nullable();
|
|
type t1 = z.infer<typeof t1>;
|
|
util.assertEqual<t1, unknown>(true);
|
|
});
|
|
|
|
test("check never inference", () => {
|
|
const t1 = z.never();
|
|
expect(() => t1.parse(undefined)).toThrow();
|
|
expect(() => t1.parse("asdf")).toThrow();
|
|
expect(() => t1.parse(null)).toThrow();
|
|
});
|