December 2017
Beginner
372 pages
10h 32m
English
In our describe function, we will create properties for Trello service, Board array, which we expect to be returned from the function. Also, we will need to mock the Trello service class dependencies, which in this case is HTTP. The following is our describe function:
describe('Trello HTTP Service',() =>{ let trelloService: TrelloService; let mockHTTP; let fakeBoards:Board[];});
As we can see here, we are just declaring the properties, and not initializing them. That will be done inside the beforeEach function.
Read now
Unlock full access