From 78f1f227fc469596d65a671d8314d4401b62d248 Mon Sep 17 00:00:00 2001 From: Le Vivilet Date: Wed, 22 Apr 2026 22:48:50 +0200 Subject: [PATCH] test: add unit test for getCss function to verify error styles --- packages/diff-view/test/GetCss.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/diff-view/test/GetCss.test.ts diff --git a/packages/diff-view/test/GetCss.test.ts b/packages/diff-view/test/GetCss.test.ts new file mode 100644 index 0000000..5f68ef6 --- /dev/null +++ b/packages/diff-view/test/GetCss.test.ts @@ -0,0 +1,11 @@ +import { expect, test } from '@jest/globals' +import { getCss } from '../src/parts/GetCss/GetCss.ts' + +test('getCss includes the shared error styles', (): void => { + const css = getCss() + + expect(css).toContain('.DiffEditorErrorCodeFrame') + expect(css).toContain('.DiffEditorErrorStack') + expect(css).toContain('.DiffEditorErrorStackLink') + expect(css).toContain('text-underline-offset: 2px;') +})