mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 02:12:36 +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
|
@ -20,7 +20,7 @@ import type {
|
|||
import _ from 'lodash';
|
||||
|
||||
describe('docsClientUtils', () => {
|
||||
test('getActivePlugin', () => {
|
||||
it('getActivePlugin', () => {
|
||||
const data: Record<string, GlobalPluginData> = {
|
||||
pluginIosId: {
|
||||
path: '/ios',
|
||||
|
@ -91,7 +91,7 @@ describe('docsClientUtils', () => {
|
|||
).toEqual('pluginAndroidId');
|
||||
});
|
||||
|
||||
test('getLatestVersion', () => {
|
||||
it('getLatestVersion', () => {
|
||||
const versions: GlobalVersion[] = [
|
||||
{
|
||||
name: 'version1',
|
||||
|
@ -127,7 +127,7 @@ describe('docsClientUtils', () => {
|
|||
).toEqual(versions[1]);
|
||||
});
|
||||
|
||||
test('getActiveVersion', () => {
|
||||
it('getActiveVersion', () => {
|
||||
const data: GlobalPluginData = {
|
||||
path: 'docs',
|
||||
versions: [
|
||||
|
@ -175,7 +175,7 @@ describe('docsClientUtils', () => {
|
|||
);
|
||||
});
|
||||
|
||||
test('getActiveDocContext', () => {
|
||||
it('getActiveDocContext', () => {
|
||||
const versionNext: GlobalVersion = {
|
||||
name: 'next',
|
||||
label: 'next',
|
||||
|
@ -304,7 +304,7 @@ describe('docsClientUtils', () => {
|
|||
});
|
||||
});
|
||||
|
||||
test('getDocVersionSuggestions', () => {
|
||||
it('getDocVersionSuggestions', () => {
|
||||
const versionNext: GlobalVersion = {
|
||||
name: 'next',
|
||||
label: 'next',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue