Fix home test

This commit is contained in:
Phan An 2017-12-15 00:57:37 +01:00
parent 95c7953e8f
commit f86f5f9a6f

View file

@ -47,7 +47,7 @@ describe('components/main-wrapper/main-content/home', () => {
const wrapper = shallow(Home)
const refreshDashboardStub = sinon.stub()
wrapper.refreshDashboard = refreshDashboardStub
event.emit('song:played')
event.emit('song:played', factory('song'))
refreshDashboardStub.should.have.been.called
})
})