Testing Service. TypeError: done.fail is not a function
问题 I have tried this test, for testing my service: It has shown this error: TypeError: done.fail is not a function test file it('should return reasonable json ssss', inject([ProductService, MockBackend], async((service: ProductService, mockBackend: MockBackend) => { const mockResponse = { data: [ { id: 0, details: 'All cats are lions' }, { id: 1, details: 'Video 1' }, { id: 2, details: 'Video 2' }, { id: 3, details: 'Video 3' }, ] }; mockBackend.connections.subscribe(connection => { connection