Skip to content

Commit 29e19ea

Browse files
committed
feat(package): added empty input dialog component
1 parent a48f8e7 commit 29e19ea

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
mat-input-dialog works!
3+
</p>

src/module/components/dialogs/mat-input-dialog/mat-input-dialog.component.scss

Whitespace-only changes.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { MatInputDialog } from './mat-input-dialog.component';
4+
import {STATIC_IMPORTS} from '../test/helper';
5+
import {MatDialogRef} from '@angular/material';
6+
7+
describe('MatInputDialog', () => {
8+
let component: MatInputDialog;
9+
let fixture: ComponentFixture<MatInputDialog>;
10+
11+
beforeEach(async(() => {
12+
TestBed.configureTestingModule({
13+
declarations: [ MatInputDialog ],
14+
imports: [...STATIC_IMPORTS],
15+
providers: [{provide: MatDialogRef, useValue: {}}]
16+
})
17+
.compileComponents();
18+
}));
19+
20+
beforeEach(() => {
21+
fixture = TestBed.createComponent(MatInputDialog);
22+
component = fixture.componentInstance;
23+
fixture.detectChanges();
24+
});
25+
26+
it('should create', () => {
27+
expect(component).toBeTruthy();
28+
});
29+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Component, OnInit } from '@angular/core';
2+
3+
@Component({
4+
selector: 'mat-input-dialog',
5+
templateUrl: './mat-input-dialog.component.html',
6+
styleUrls: ['./mat-input-dialog.component.scss']
7+
})
8+
export class MatInputDialog implements OnInit {
9+
10+
constructor() { }
11+
12+
ngOnInit() {
13+
}
14+
15+
}

0 commit comments

Comments
 (0)