{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments/167777454","pull_request_review_id":96043088,"id":167777454,"diff_hunk":"@@ -0,0 +1,29 @@\n+import { expect } from 'chai'\n+import { getInterestDetails } from 'common/interest'\n+import * as claimStoreServiceMock from '../../http-mocks/claim-store'\n+import { Claim } from 'claims/models/claim'\n+import { InterestType } from 'claim/form/models/interest'\n+import { Moment } from 'moment'\n+import { MomentFactory } from 'common/momentFactory'\n+\n+describe('getInterestDetails', () => {\n+\n+  it('should return undefined when interest has not been selected', async () => {\n+    let claim: Claim = new Claim().deserialize(claimStoreServiceMock.sampleClaimObj)\n+    claim.claimData.interest.type = InterestType.NO_INTEREST\n+    expect(await getInterestDetails(claim)).to.be.eq(undefined)\n+  })\n+\n+  it('should return expected interestDetails containing the needed values to be displayed', async () => {\n+    const claim: Claim = new Claim().deserialize(claimStoreServiceMock.sampleClaimObj)\n+    claimStoreServiceMock.mockCalculateInterestRate(0)","path":"src/test/common/utils/interest.ts","position":19,"original_position":19,"commit_id":"afa912561c0106a37b95fdf9bf6541515fabc227","original_commit_id":"afa912561c0106a37b95fdf9bf6541515fabc227","user":{"login":"timja-kainos","id":21194782,"avatar_url":"https://avatars3.githubusercontent.com/u/21194782?v=4","gravatar_id":"","url":"https://api.github.com/users/timja-kainos","html_url":"https://github.com/timja-kainos","followers_url":"https://api.github.com/users/timja-kainos/followers","following_url":"https://api.github.com/users/timja-kainos/following{/other_user}","gists_url":"https://api.github.com/users/timja-kainos/gists{/gist_id}","starred_url":"https://api.github.com/users/timja-kainos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timja-kainos/subscriptions","organizations_url":"https://api.github.com/users/timja-kainos/orgs","repos_url":"https://api.github.com/users/timja-kainos/repos","events_url":"https://api.github.com/users/timja-kainos/events{/privacy}","received_events_url":"https://api.github.com/users/timja-kainos/received_events","type":"User","site_admin":false},"body":"an interest rate of 0 seems like an invalid test case? would you mind making it more realistic please?\r\n","created_at":"2018-02-13T07:17:47Z","updated_at":"2018-02-13T07:17:47Z","html_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/371#discussion_r167777454","pull_request_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments/167777454"},"html":{"href":"https://github.com/hmcts/cmc-citizen-frontend/pull/371#discussion_r167777454"},"pull_request":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371"}}},"pull_request":{"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371","id":168545710,"html_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/371","diff_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/371.diff","patch_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/371.patch","issue_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/371","number":371,"state":"open","locked":false,"title":"ROC-3200 - Number of days bug","user":{"login":"robertparkinson","id":8955824,"avatar_url":"https://avatars3.githubusercontent.com/u/8955824?v=4","gravatar_id":"","url":"https://api.github.com/users/robertparkinson","html_url":"https://github.com/robertparkinson","followers_url":"https://api.github.com/users/robertparkinson/followers","following_url":"https://api.github.com/users/robertparkinson/following{/other_user}","gists_url":"https://api.github.com/users/robertparkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/robertparkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertparkinson/subscriptions","organizations_url":"https://api.github.com/users/robertparkinson/orgs","repos_url":"https://api.github.com/users/robertparkinson/repos","events_url":"https://api.github.com/users/robertparkinson/events{/privacy}","received_events_url":"https://api.github.com/users/robertparkinson/received_events","type":"User","site_admin":false},"body":"### JIRA link\r\nhttps://tools.hmcts.net/jira/browse/ROC-3200\r\n\r\n\r\n### Change description\r\nIncrease number of days shown by 1 to account for the first day\r\n\r\n### Work checklist\r\n\r\n- [ ] Unit tests added where applicable\r\n- [ ] Route tests added for new pages\r\n- [ ] New pages included in a11y tests\r\n- [ ] Task list and task completeness checks updated\r\n- [ ] Check and send page updated\r\n- [ ] Routes, page content and page flows of new features are toggled \r\n- [ ] UI changes look good on mobile\r\n- [ ] Required Google Analytics events are being sent \r\n\r\n### Developer self-QA run statement\r\n\r\n- [x] I have clicked through the running application to see if all changes I made actually work.\r\n\r\n### Does this PR introduce a breaking change?\r\n\r\n- [ ] Yes\r\n- [x] No\r\n","created_at":"2018-02-12T10:43:54Z","updated_at":"2018-02-13T07:17:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdf53121e7f13c115344867cf6b43b3c25afd28d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371/commits","review_comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371/comments","review_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/371/comments","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/afa912561c0106a37b95fdf9bf6541515fabc227","head":{"label":"hmcts:bug/ROC-3200-number-of-days","ref":"bug/ROC-3200-number-of-days","sha":"afa912561c0106a37b95fdf9bf6541515fabc227","user":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":100393203,"name":"cmc-citizen-frontend","full_name":"hmcts/cmc-citizen-frontend","owner":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/cmc-citizen-frontend","description":"Citizen frontend application for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend","forks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/deployments","created_at":"2017-08-15T15:44:48Z","updated_at":"2017-11-05T14:28:24Z","pushed_at":"2018-02-13T07:06:50Z","git_url":"git://github.com/hmcts/cmc-citizen-frontend.git","ssh_url":"git@github.com:hmcts/cmc-citizen-frontend.git","clone_url":"https://github.com/hmcts/cmc-citizen-frontend.git","svn_url":"https://github.com/hmcts/cmc-citizen-frontend","homepage":"","size":2216,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"a769634fd6991353c2eea1fc6b0d2a760c07edb1","user":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":100393203,"name":"cmc-citizen-frontend","full_name":"hmcts/cmc-citizen-frontend","owner":{"login":"hmcts","id":22817111,"avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/cmc-citizen-frontend","description":"Citizen frontend application for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend","forks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/deployments","created_at":"2017-08-15T15:44:48Z","updated_at":"2017-11-05T14:28:24Z","pushed_at":"2018-02-13T07:06:50Z","git_url":"git://github.com/hmcts/cmc-citizen-frontend.git","ssh_url":"git@github.com:hmcts/cmc-citizen-frontend.git","clone_url":"https://github.com/hmcts/cmc-citizen-frontend.git","svn_url":"https://github.com/hmcts/cmc-citizen-frontend","homepage":"","size":2216,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":3,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371"},"html":{"href":"https://github.com/hmcts/cmc-citizen-frontend/pull/371"},"issue":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/371"},"comments":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/371/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/371/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/afa912561c0106a37b95fdf9bf6541515fabc227"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"timja-kainos"}}