Skip to content

Commit

Permalink
Adds done in efforts to fix travis timeout errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenBW committed Oct 25, 2017
1 parent 1397e31 commit 3e5d6bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/app/core/appliance-info.service.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ describe('Appliance Info Service', () => {
bard.inject('ApplianceInfo')
})

it('should allow you to set appliance info', () => {
it('should allow you to set appliance info', (done) => {
const applianceSpy = sinon.spy(ApplianceInfo, 'set')
ApplianceInfo.set(applianceInfoData)
done()

expect(applianceSpy).to.have.been.calledWith(applianceInfoData)
})
it('Should allow you to retrieve the appliance info', () => {
it('Should allow you to retrieve the appliance info', (done) => {
const expectedApplianceInfo = {
'copyright': 'Copyright (c) 2017 ManageIQ. Sponsored by Red Hat Inc.',
'supportWebsiteText': 'ManageIQ.org',
Expand All @@ -44,6 +45,7 @@ describe('Appliance Info Service', () => {
}
ApplianceInfo.set(applianceInfoData)
const currentApplianceInfo = ApplianceInfo.get()
done()

expect(currentApplianceInfo).to.eql(expectedApplianceInfo)
})
Expand Down

0 comments on commit 3e5d6bd

Please sign in to comment.