Skip to content

Commit

Permalink
feat: add a tag name to the popover window component
Browse files Browse the repository at this point in the history
Fixes #70
  • Loading branch information
Matt Lewis committed Feb 10, 2018
1 parent 4b70467 commit 85902d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/confirmation-popover-window.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ConfirmationPopoverWindowOptions } from './confirmation-popover-window-
* @internal
*/
@Component({
selector: 'mwl-confirmation-popover-window',
styles: [
`
.popover {
Expand Down
12 changes: 12 additions & 0 deletions test/angular-confirmation-popover.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,18 @@ describe('bootstrap confirm', () => {
popover.location.nativeElement.querySelector('.confirm-btns')
).to.have.class('confirm-btns-reversed');
});

it('should add a selector to the popover window component', () => {
const fixture: ComponentFixture<TestComponent> = TestBed.createComponent(
TestComponent
);
clickFixture(fixture);
const popover: ComponentRef<ConfirmationPopoverWindowComponent> =
fixture.componentInstance.confirm.popover;
expect(popover.location.nativeElement.tagName.toLowerCase()).to.equal(
'mwl-confirmation-popover-window'
);
});
});

describe('ConfirmOptions', () => {
Expand Down

0 comments on commit 85902d6

Please sign in to comment.