Skip to content

Commit

Permalink
Merge pull request worktile#190 from worktile/move-apply-test
Browse files Browse the repository at this point in the history
chore(core): apply hook test refactor
  • Loading branch information
huanhuanwa authored Mar 22, 2022
2 parents a59408c + 1153c34 commit f56a438
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 211 deletions.
4 changes: 2 additions & 2 deletions packages/src/plugins/angular-editor.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestBed, ComponentFixture, tick, fakeAsync, flush } from '@angular/core/testing';
import { AngularEditor } from './angular-editor';
import { BasicEditableComponent, configureBasicEditableTestingModule } from '../testing';
import { Transforms } from 'slate';
import { Transforms, Element } from 'slate';
import { createEmptyDocument } from 'slate-angular/testing/create-document';

describe('AngularEditor', () => {
Expand All @@ -12,7 +12,7 @@ describe('AngularEditor', () => {
configureBasicEditableTestingModule([BasicEditableComponent]);
fixture = TestBed.createComponent(BasicEditableComponent);
component = fixture.componentInstance;
component.value = createEmptyDocument();
component.value = createEmptyDocument() as Element[];
fixture.detectChanges();
flush();
fixture.detectChanges();
Expand Down
Loading

0 comments on commit f56a438

Please sign in to comment.