Changed true string to a boolean

Fixed toBeTruthy to toBe(true) in spec
This commit is contained in:
Phil Hughes 2018-09-18 17:12:37 +01:00 committed by André Luís
parent e3cc9d53d2
commit 78f64e83ab
2 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -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);
});
});