persona-community-5/.pnpm-store/v3/files/bb/2dfe503e120d9df8ae566563c5bb1e01002e97bbfa0fbb2c4995e84455e8f39e61599d5110ff166aa458230d5a20b6791d46c912eb1a667f8f3fcbfd394841
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

38 lines
911 B
Plaintext

import { outdent } from 'outdent';
import {
parseYamlToDocument,
replaceSourceWithRef,
makeConfig,
} from '../../../../../__tests__/utils';
import { lintDocument } from '../../../../lint';
import { BaseResolver } from '../../../../resolve';
describe('Referenceable scalars', () => {
it('should not report $ref description', async () => {
const document = parseYamlToDocument(
outdent`
swagger: '2.0'
info:
title: Test
version: '1.0'
description:
$ref: fixtures/description.md
paths: {}
`,
__dirname + '/foobar.yaml'
);
const results = await lintDocument({
externalRefResolver: new BaseResolver(),
document,
config: await makeConfig({
rules: {
spec: 'error',
},
}),
});
expect(replaceSourceWithRef(results)).toMatchInlineSnapshot(`[]`);
});
});