@@ -20,6 +20,7 @@ npm install
2020This time, we want to handle ` getMembers ` errors:
2121
2222> 403: API rate limit exceeded
23+ >
2324> 503: Service unavailable
2425
2526_ ./src/api.ts_
@@ -77,7 +78,7 @@ _./src/api.spec.ts_
7778``` javascript
7879import { getMembers } from ' ./api' ;
7980
80- describe (' api specs' , () => {
81+ describe (' getMembers specs' , () => {
8182 it (' ' , () => {
8283 // Arrange
8384 // Act
@@ -95,7 +96,7 @@ _./src/api.spec.ts_
9596+ import { Member } from './api-model';
9697import { getMembers } from './api';
9798
98- describe('api specs', () => {
99+ describe('getMembers specs', () => {
99100- it('', () => {
100101+ it('should return members when it resolves the request successfully', () => {
101102 // Arrange
@@ -133,7 +134,7 @@ import Axios from 'axios';
133134import { Member } from './api-model';
134135import { getMembers } from './api';
135136
136- describe('api specs', () => {
137+ describe('getMembers specs', () => {
137138- it('should return members when it resolves the request successfully', () => {
138139+ it('should return members when it resolves the request successfully', async () => {
139140 // Arrange
0 commit comments