GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — t3code/scripts/mobile-native-static-check.test.ts at main · VitaCodez/t3code Expand file tree/ Copy pathmobile-native-static-check.test.tsMore file actions 26 lines (22 loc) · 1021 Bytes / Copy pathmobile-native-static-check.test.tsFile metadata and controls26 lines (22 loc) · 1021 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import { assert, it } from "@effect/vitest"; import * as Effect from "effect/Effect"; import { requireKotlinTools } from "./mobile-native-static-check.ts"; it.effect("allows Kotlin checks when ktlint and detekt are on PATH", () => requireKotlinTools({ ktlint: true, detekt: true }), ); it.effect("fails when ktlint or detekt is missing instead of skipping", () => Effect.gen(function* () { const ktlintError = yield* requireKotlinTools({ ktlint: false, detekt: true }).pipe( Effect.flip, ); if (ktlintError._tag !== "NativeStaticCheckMissingToolError") { return assert.fail(`Unexpected error: ${ktlintError._tag}`); } assert.deepEqual(ktlintError.commands, ["ktlint"]); const bothError = yield* requireKotlinTools({ ktlint: false, detekt: false }).pipe(Effect.flip); if (bothError._tag !== "NativeStaticCheckMissingToolError") { return assert.fail(`Unexpected error: ${bothError._tag}`); } assert.deepEqual(bothError.commands, ["ktlint", "detekt"]); }), ); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |