Stubs out Diagram component.

This commit is contained in:
Aaron Louie 2020-01-07 09:28:36 -05:00
parent 6fc6fcebba
commit d3401d8d9d
5 changed files with 44 additions and 1 deletions

View File

@ -3,10 +3,12 @@ import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DiagramComponent } from './diagram/diagram.component';
@NgModule({
declarations: [
AppComponent
AppComponent,
DiagramComponent
],
imports: [
BrowserModule,

View File

@ -0,0 +1 @@
<p>diagram works!</p>

View File

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DiagramComponent } from './diagram.component';
describe('DiagramComponent', () => {
let component: DiagramComponent;
let fixture: ComponentFixture<DiagramComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DiagramComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DiagramComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-diagram',
templateUrl: './diagram.component.html',
styleUrls: ['./diagram.component.scss']
})
export class DiagramComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}