Rename REST content-type utilities to code-example-utils (#56894)
Co-authored-by: GitHub Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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', () => {
|
||||
Reference in New Issue
Block a user