12 lines
431 B
TypeScript
Vendored
12 lines
431 B
TypeScript
Vendored
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import path from "node:path";
|
|
import { test } from "vitest";
|
|
|
|
test("Kafka database icon includes a light contrast stroke for dark themes", () => {
|
|
const svg = readFileSync(path.resolve("apps/desktop/public/icons/database/kafka.svg"), "utf8");
|
|
|
|
assert.match(svg, /stroke="#(?:F8FAFC|E5E7EB|FFFFFF)"/i);
|
|
assert.match(svg, /fill="#231F20"/i);
|
|
});
|