Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 07af0c1

Browse files
rseseCopilot
andauthored
Rename REST content-type utilities to code-example-utils (#56894)
Co-authored-by: GitHub Copilot <175728472+Copilot@users.noreply.github.com>
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'
File renamed without changes.

‎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)

AltStyle によって変換されたページ (->オリジナル) /