Skip to content

Commit 07af0c1

Browse files
rseseCopilot
andauthored
Rename REST content-type utilities to code-example-utils (#56894)
Co-authored-by: GitHub Copilot <[email protected]>
1 parent 8ecf8c9 commit 07af0c1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/rest/components/RestCodeSamples.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import cx from 'classnames'
88
import hljs from 'highlight.js/lib/core'
99
import json from 'highlight.js/lib/languages/json'
1010
import javascript from 'highlight.js/lib/languages/javascript'
11-
import { generateExampleOptions } from '@/rest/lib/content-type-utils'
11+
import { generateExampleOptions } from '@/rest/lib/code-example-utils'
1212
import hljsCurl from 'highlightjs-curl'
1313

1414
import { useTranslation } from '@/languages/components/useTranslation'

src/rest/tests/content-type-logic.js renamed to src/rest/tests/code-example-logic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
shouldShowRequestContentType,
44
shouldShowResponseContentType,
55
generateExampleOptionTexts,
6-
} from '@/rest/lib/content-type-utils'
6+
} from '@/rest/lib/code-example-utils'
77

88
describe('Request Content Type Logic', () => {
99
test('detects request content types differ correctly', () => {

0 commit comments

Comments
 (0)