Skip to content

Commit

Permalink
Fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Mar 4, 2023
1 parent ff3ce0f commit 1d874ea
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import Documentation from '../../Documentation';
import type { Importer } from '../../importer';
import type { ComponentNode } from '../../resolver';
import type DocumentationMock from '../../__mocks__/Documentation';
import propDocBlockHandler from '../propDocBlockHandler.js';
import propDocblockHandler from '../propDocblockHandler.js';
import { beforeEach, describe, expect, test, vi } from 'vitest';

vi.mock('../../Documentation.js');

describe('propDocBlockHandler', () => {
describe('propDocblockHandler', () => {
let documentation: Documentation & DocumentationMock;

beforeEach(() => {
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('propDocBlockHandler', () => {
),
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'Foo comment',
Expand All @@ -75,7 +75,7 @@ describe('propDocBlockHandler', () => {
),
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description:
Expand All @@ -102,7 +102,7 @@ describe('propDocBlockHandler', () => {
),
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'Foo comment',
Expand All @@ -126,7 +126,7 @@ describe('propDocBlockHandler', () => {
),
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'Foo comment',
Expand All @@ -150,7 +150,7 @@ describe('propDocBlockHandler', () => {
),
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'Foo comment',
Expand All @@ -169,7 +169,7 @@ describe('propDocBlockHandler', () => {
};
`);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'Foo comment',
Expand All @@ -186,7 +186,7 @@ describe('propDocBlockHandler', () => {
mockImporter,
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'A comment on imported props',
Expand All @@ -210,7 +210,7 @@ describe('propDocBlockHandler', () => {
mockImporter,
);

propDocBlockHandler(documentation, definition);
propDocblockHandler(documentation, definition);
expect(documentation.descriptors).toEqual({
foo: {
description: 'A comment on imported props',
Expand Down Expand Up @@ -263,15 +263,15 @@ describe('propDocBlockHandler', () => {
const definition = parse.expression<ObjectExpression>('{fooBar: 42}');

expect(() =>
propDocBlockHandler(documentation, definition),
propDocblockHandler(documentation, definition),
).not.toThrow();
});

test('ClassDeclaration', () => {
const definition = parse.statement<ClassDeclaration>('class Foo {}');

expect(() =>
propDocBlockHandler(documentation, definition),
propDocblockHandler(documentation, definition),
).not.toThrow();
});
});
Expand Down

0 comments on commit 1d874ea

Please sign in to comment.