it( 'pushes the commits and tags to the remote branch', () => { const repoURL = 'git+ssh://git@github.com/cfpb/capital-framework.git'; return util.git.push( repoURL ).then( () => { expect( execStub ).toHaveBeenCalledTimes( 3 ); expect( execStub.mock.calls[0][0] ).toBe( 'git push git+ssh://git@github.com/cfpb/capital-framework.git master' ); expect( execStub.mock.calls[1][0] ).toBe( 'git push git+ssh://git@github.com/cfpb/capital-framework.git ' + 'master:canary' ); expect( execStub.mock.calls[2][0] ).toBe( 'git push git+ssh://git@github.com/cfpb/capital-framework.git --tags' ); } ); } );