Skip to content

Commit

Permalink
feat: fix type error and add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pubuzhixing8 committed Jun 11, 2024
1 parent e2f6d8f commit 8b0b4e6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/angular-board/src/board/board.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('mock test', () => {
it('test', () => {
const a = '1';
expect(a).toEqual('1');
});
});
6 changes: 6 additions & 0 deletions packages/angular-text/src/text/text.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('mock test', () => {
it('test', () => {
const a = '1';
expect(a).toEqual('1');
});
});
2 changes: 1 addition & 1 deletion packages/angular-text/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CustomText, CustomElement } from './src/custom-types';
import { CustomElement, CustomText } from "@plait/common";

declare module 'slate' {
interface CustomTypes {
Expand Down
2 changes: 1 addition & 1 deletion packages/mind/src/utils/node/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getFirstTextManage } from '@plait/common';

export function editTopic(element: MindElement) {
const textManage = getFirstTextManage(element);
textManage.edit(() => {});
textManage?.edit(() => {});
}

export const getSelectedMindElements = (board: PlaitBoard, elements?: PlaitElement[]) => {
Expand Down
6 changes: 6 additions & 0 deletions packages/text-plugins/src/text-transforms.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('mock test', () => {
it('test', () => {
const a = '1';
expect(a).toEqual('1');
});
});

0 comments on commit 8b0b4e6

Please sign in to comment.