diff options
author | Phil Hughes <me@iamphill.com> | 2018-09-18 17:12:37 +0100 |
---|---|---|
committer | André Luís <aluis@gitlab.com> | 2018-09-21 11:59:44 +0100 |
commit | 78f64e83ab63461d8c21da48b41d3c6e77378b7b (patch) | |
tree | ea61d62a422de8e458763aa082e9aed3ecf56e29 | |
parent | e3cc9d53d2fb69be8a79daacaecb28d45280880a (diff) | |
download | gitlab-ce-78f64e83ab63461d8c21da48b41d3c6e77378b7b.tar.gz |
Changed `true` string to a boolean
Fixed toBeTruthy to toBe(true) in spec
-rw-r--r-- | app/assets/javascripts/diffs/store/utils.js | 2 | ||||
-rw-r--r-- | spec/javascripts/diffs/store/actions_spec.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/diffs/store/utils.js b/app/assets/javascripts/diffs/store/utils.js index 8bae0461508..631e3de311e 100644 --- a/app/assets/javascripts/diffs/store/utils.js +++ b/app/assets/javascripts/diffs/store/utils.js @@ -55,7 +55,7 @@ export function getNoteFormData(params) { note_project_id: '', target_type: noteableData.targetType, target_id: noteableData.id, - return_discussion: 'true', + return_discussion: true, note: { note, position, diff --git a/spec/javascripts/diffs/store/actions_spec.js b/spec/javascripts/diffs/store/actions_spec.js index 5b1a0b2f392..05b39bad6ea 100644 --- a/spec/javascripts/diffs/store/actions_spec.js +++ b/spec/javascripts/diffs/store/actions_spec.js @@ -271,8 +271,8 @@ describe('DiffsStoreActions', () => { startRenderDiffsQueue({ state, commit: pseudoCommit }); - expect(state.diffFiles[0].renderIt).toBeTruthy(); - expect(state.diffFiles[1].renderIt).toBeTruthy(); + expect(state.diffFiles[0].renderIt).toBe(true); + expect(state.diffFiles[1].renderIt).toBe(true); }); }); |