Apply repository-wide ESLint auto-fix formatting pass
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -3,17 +3,17 @@
|
||||
// Authors:
|
||||
// codex@openai.com (Codex), 2026/03/08
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
import { createTooltipContent } from '@/module/tooltipContent.js';
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { createTooltipContent } from "@/module/tooltipContent.js";
|
||||
|
||||
describe('createTooltipContent', () => {
|
||||
it('renders untrusted label as plain text', () => {
|
||||
const label = '<img src=x onerror=alert(1)>Node';
|
||||
describe("createTooltipContent", () => {
|
||||
it("renders untrusted label as plain text", () => {
|
||||
const label = "<img src=x onerror=alert(1)>Node";
|
||||
|
||||
const content = createTooltipContent(label);
|
||||
|
||||
expect(content.textContent).toBe(label);
|
||||
expect(content.innerHTML).toContain('<img');
|
||||
expect(content.querySelector('img')).toBeNull();
|
||||
expect(content.innerHTML).toContain("<img");
|
||||
expect(content.querySelector("img")).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user