From 07af0c18f74fcbf3695e6b08a096573b669fca35 Mon Sep 17 00:00:00 2001 From: Robert Sese <734194+rsese@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:10:32 -0500 Subject: [PATCH] Rename REST content-type utilities to code-example-utils (#56894) Co-authored-by: GitHub Copilot <175728472+Copilot@users.noreply.github.com> --- src/rest/components/RestCodeSamples.tsx | 2 +- src/rest/lib/{content-type-utils.ts => code-example-utils.ts} | 0 src/rest/tests/{content-type-logic.js => code-example-logic.js} | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename src/rest/lib/{content-type-utils.ts => code-example-utils.ts} (100%) rename src/rest/tests/{content-type-logic.js => code-example-logic.js} (99%) diff --git a/src/rest/components/RestCodeSamples.tsx b/src/rest/components/RestCodeSamples.tsx index 006b76685f..1ea70c4406 100644 --- a/src/rest/components/RestCodeSamples.tsx +++ b/src/rest/components/RestCodeSamples.tsx @@ -8,7 +8,7 @@ import cx from 'classnames' import hljs from 'highlight.js/lib/core' import json from 'highlight.js/lib/languages/json' import javascript from 'highlight.js/lib/languages/javascript' -import { generateExampleOptions } from '@/rest/lib/content-type-utils' +import { generateExampleOptions } from '@/rest/lib/code-example-utils' import hljsCurl from 'highlightjs-curl' import { useTranslation } from '@/languages/components/useTranslation' diff --git a/src/rest/lib/content-type-utils.ts b/src/rest/lib/code-example-utils.ts similarity index 100% rename from src/rest/lib/content-type-utils.ts rename to src/rest/lib/code-example-utils.ts diff --git a/src/rest/tests/content-type-logic.js b/src/rest/tests/code-example-logic.js similarity index 99% rename from src/rest/tests/content-type-logic.js rename to src/rest/tests/code-example-logic.js index 4577c36f66..e2d0b24638 100644 --- a/src/rest/tests/content-type-logic.js +++ b/src/rest/tests/code-example-logic.js @@ -3,7 +3,7 @@ import { shouldShowRequestContentType, shouldShowResponseContentType, generateExampleOptionTexts, -} from '@/rest/lib/content-type-utils' +} from '@/rest/lib/code-example-utils' describe('Request Content Type Logic', () => { test('detects request content types differ correctly', () => {