Explain about async / await in Protractor

I'm new to protractor. How does async/await in this function works? Can anybody explain it to me? it('TC_01 - Verify Cockpit page title', async (done) => { headerPage.waitForTitleContain('PEAX', 30000); expect(await headerPage.getTitle()).toEqual('PE

Test of two promises resolved with Angular / Jasmine

I have a service called myHttp that returns a promise, and a controller that calls myHttp twice with different parameters. To test the controller, I'm attempting to mock myHttp with Jasmine spyOn like so: beforeEach(inject(function($controller, _$roo