Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
78f64e83
Commit
78f64e83
authored
Sep 18, 2018
by
Phil Hughes
Committed by
André Luís
Sep 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed `true` string to a boolean
Fixed toBeTruthy to toBe(true) in spec
parent
e3cc9d53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/assets/javascripts/diffs/store/utils.js
app/assets/javascripts/diffs/store/utils.js
+1
-1
spec/javascripts/diffs/store/actions_spec.js
spec/javascripts/diffs/store/actions_spec.js
+2
-2
No files found.
app/assets/javascripts/diffs/store/utils.js
View file @
78f64e83
...
...
@@ -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
,
...
...
spec/javascripts/diffs/store/actions_spec.js
View file @
78f64e83
...
...
@@ -271,8 +271,8 @@ describe('DiffsStoreActions', () => {
startRenderDiffsQueue
({
state
,
commit
:
pseudoCommit
});
expect
(
state
.
diffFiles
[
0
].
renderIt
).
toBe
Truthy
(
);
expect
(
state
.
diffFiles
[
1
].
renderIt
).
toBe
Truthy
(
);
expect
(
state
.
diffFiles
[
0
].
renderIt
).
toBe
(
true
);
expect
(
state
.
diffFiles
[
1
].
renderIt
).
toBe
(
true
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment