Mercurial > hg > ugly-duckling
view src/app/waveform/waveform.component.spec.ts @ 193:ac57ddba8ba9
Provide an observable in the audio service for when new audio has been loaded. The handling of errors is currently undesirable, using optional fields on the returned object. I couldn't figure out the proper Observable error flow without closing the stream.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Thu, 23 Mar 2017 15:44:32 +0000 |
parents | ee4353d1aeeb |
children |
line wrap: on
line source
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { WaveformComponent } from './waveform.component'; describe('WaveformComponent', () => { let component: WaveformComponent; let fixture: ComponentFixture<WaveformComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ WaveformComponent ] }) .compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(WaveformComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });