Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Challonge
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Challonge
Commits
989ca3ae
Commit
989ca3ae
authored
Mar 19, 2017
by
Aaron Tidwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linter and format errors
parent
3e4ec009
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
lib/api/client.js
lib/api/client.js
+1
-1
lib/param-serializer.js
lib/param-serializer.js
+1
-1
lib/util.js
lib/util.js
+1
-1
lib/util.spec.js
lib/util.spec.js
+2
-2
No files found.
lib/api/client.js
View file @
989ca3ae
...
@@ -73,7 +73,7 @@ Client.prototype.makeRequest = function(obj) {
...
@@ -73,7 +73,7 @@ Client.prototype.makeRequest = function(obj) {
const
serialized
=
util
.
serializeToQSParams
(
obj
);
const
serialized
=
util
.
serializeToQSParams
(
obj
);
path
=
versionPaths
[
this
.
options
.
get
(
'
version
'
)]
+
(
path
?
path
:
''
)
+
'
.
'
+
this
.
options
.
get
(
'
format
'
)
+
'
?
'
+
serialized
path
=
versionPaths
[
this
.
options
.
get
(
'
version
'
)]
+
(
path
?
path
:
''
)
+
'
.
'
+
this
.
options
.
get
(
'
format
'
)
+
'
?
'
+
serialized
;
// create options for the https call
// create options for the https call
const
options
=
{
const
options
=
{
...
...
lib/param-serializer.js
View file @
989ca3ae
...
@@ -53,6 +53,6 @@ function serialize(a) {
...
@@ -53,6 +53,6 @@ function serialize(a) {
}
}
return
decodeURIComponent
(
buildParams
(
''
,
a
).
join
(
'
&
'
).
replace
(
/%20/g
,
'
+
'
));
return
decodeURIComponent
(
buildParams
(
''
,
a
).
join
(
'
&
'
).
replace
(
/%20/g
,
'
+
'
));
}
;
}
module
.
exports
=
serialize
;
module
.
exports
=
serialize
;
lib/util.js
View file @
989ca3ae
...
@@ -21,7 +21,7 @@ function convert(obj, conversionFn, newObject) {
...
@@ -21,7 +21,7 @@ function convert(obj, conversionFn, newObject) {
const
convertObj
=
newObject
[
conversionFn
(
prop
)]
=
{};
const
convertObj
=
newObject
[
conversionFn
(
prop
)]
=
{};
convert
(
obj
[
prop
],
conversionFn
,
convertObj
);
convert
(
obj
[
prop
],
conversionFn
,
convertObj
);
}
else
{
}
else
{
newObject
[
conversionFn
(
prop
)]
=
obj
[
prop
]
newObject
[
conversionFn
(
prop
)]
=
obj
[
prop
]
;
}
}
});
});
return
newObject
;
return
newObject
;
...
...
lib/util.spec.js
View file @
989ca3ae
...
@@ -94,7 +94,7 @@ describe('util methods', () => {
...
@@ -94,7 +94,7 @@ describe('util methods', () => {
}
}
});
});
});
});
it
(
'
should convert properties that are deeply
'
,
()
=>
{
it
(
'
should convert properties that are deeply
'
,
()
=>
{
expect
(
util
.
convert
({
expect
(
util
.
convert
({
some_prop
:
{
some_prop
:
{
...
@@ -115,7 +115,7 @@ describe('util methods', () => {
...
@@ -115,7 +115,7 @@ describe('util methods', () => {
describe
(
'
conversion
'
,
()
=>
{
describe
(
'
conversion
'
,
()
=>
{
it
(
'
should return what was passed if it is falsy
'
,
()
=>
{
it
(
'
should return what was passed if it is falsy
'
,
()
=>
{
expect
(
util
.
convert
(
undefined
)).
toEqual
(
undefined
);
expect
(
util
.
convert
(
undefined
)).
toEqual
(
undefined
);
})
})
;
it
(
'
should work with no props
'
,
()
=>
{
it
(
'
should work with no props
'
,
()
=>
{
expect
(
util
.
convert
({},
util
.
underscoreToCamel
)).
toEqual
({});
expect
(
util
.
convert
({},
util
.
underscoreToCamel
)).
toEqual
({});
});
});
...
...
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