'Your changes have been committed. Commit <a href="http://testing/commit/123" class="commit-sha">123</a>',
);
})
.then(done)
.catch(done.fail);
});
it('updates commit message with stats',(done)=>{
store.dispatch('commit/setLastCommitMessage',{
short_id:'123',
stats:{
additions:'1',
deletions:'2',
},
})
.then(()=>{
expect(store.state.lastCommitMsg).toBe('Your changes have been committed. Commit <a href="http://testing/commit/123" class="commit-sha">123</a> with 1 additions, 2 deletions.');