Skip to content

Commit

Permalink
test: update demo app test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Jan 26, 2021
1 parent 926894c commit c39b5cb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions demo/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ describe('AppComponent', () => {
expect(component).toBeTruthy();
});

it('should render title in a h6 tag', () => {
it('should render editor', () => {
const compiled: DebugElement = fixture.debugElement;
expect(compiled.query(By.css('.NgxEditor__MenuBar'))).toBeDefined();
expect(compiled.query(By.css('.NgxEditor'))).toBeTruthy();
expect(compiled.query(By.css('.ProseMirror'))).toBeTruthy();
});

it('should render menubar', () => {
const compiled: DebugElement = fixture.debugElement;
expect(compiled.query(By.css('.NgxEditor__MenuBar'))).toBeTruthy();
});
});

0 comments on commit c39b5cb

Please sign in to comment.