mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-08 04:17:55 +02:00
test: enable a few jest eslint rules (#6900)
* test: enable a few jest eslint rules * more
This commit is contained in:
parent
1efc6c6091
commit
aa5a2d4c04
155 changed files with 3644 additions and 3478 deletions
packages/docusaurus-utils-validation/src/__tests__
|
@ -59,7 +59,7 @@ function testMarkdownPluginSchemas(schema: Joi.Schema) {
|
|||
}
|
||||
|
||||
describe('validation schemas', () => {
|
||||
test('PluginIdSchema', () => {
|
||||
it('pluginIdSchema', () => {
|
||||
const {testOK, testFail} = createTestHelpers({
|
||||
schema: PluginIdSchema,
|
||||
defaultValue: 'default',
|
||||
|
@ -81,7 +81,7 @@ describe('validation schemas', () => {
|
|||
testFail([]);
|
||||
});
|
||||
|
||||
test('AdmonitionsSchema', () => {
|
||||
it('admonitionsSchema', () => {
|
||||
const {testOK, testFail} = createTestHelpers({
|
||||
schema: AdmonitionsSchema,
|
||||
defaultValue: {},
|
||||
|
@ -97,15 +97,15 @@ describe('validation schemas', () => {
|
|||
testFail([]);
|
||||
});
|
||||
|
||||
test('RemarkPluginsSchema', () => {
|
||||
it('remarkPluginsSchema', () => {
|
||||
testMarkdownPluginSchemas(RemarkPluginsSchema);
|
||||
});
|
||||
|
||||
test('RehypePluginsSchema', () => {
|
||||
it('rehypePluginsSchema', () => {
|
||||
testMarkdownPluginSchemas(RehypePluginsSchema);
|
||||
});
|
||||
|
||||
test('URISchema', () => {
|
||||
it('uRISchema', () => {
|
||||
const {testFail, testOK} = createTestHelpers({schema: URISchema});
|
||||
|
||||
const validURL = 'https://docusaurus.io';
|
||||
|
@ -127,7 +127,7 @@ describe('validation schemas', () => {
|
|||
testOK(protocolRelativeUrl2);
|
||||
});
|
||||
|
||||
test('PathnameSchema', () => {
|
||||
it('pathnameSchema', () => {
|
||||
const {testFail, testOK} = createTestHelpers({schema: PathnameSchema});
|
||||
|
||||
testOK('/foo');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue