Skip to content

Commit

Permalink
Merge pull request #1051 from CruGlobal/fix-start-date
Browse files Browse the repository at this point in the history
EP-2440 - Fix next draw date
  • Loading branch information
wrandall22 authored Aug 23, 2023
2 parents 8d5c7b8 + 5b021ed commit 0596d44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/services/api/common.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Common {
path: ['nextdrawdate'],
cache: true
})
.pluck('next-draw-date')
.pluck('next-draw-date', 'string')
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/common/services/api/common.service.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ describe('common service', () => {
describe('getNextDrawDate', () => {
it('should get next draw date', () => {
self.$httpBackend.expectGET('https://give-stage2.cru.org/cortex/nextdrawdate')
.respond(200, { 'next-draw-date': '2016-10-01' })
.respond(200, { 'next-draw-date': {
chars: '2016-10-01',
string: '2016-10-01',
valueType: 'STRING'
} })
self.commonService.getNextDrawDate().subscribe(date => {
expect(date).toEqual('2016-10-01')
})
Expand Down

0 comments on commit 0596d44

Please sign in to comment.