Skip to content

Commit cce0077

Browse files
authored
Merge pull request #23 from uphold/support/update-eslint
Update ESLint to version 6.0.1
2 parents b5e0fd7 + 0c4dee1 commit cce0077

File tree

4 files changed

+374
-299
lines changed

4 files changed

+374
-299
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"babel-polyfill": "6.23.0",
5151
"babel-preset-es2015": "6.24.1",
5252
"babel-preset-es2015-node": "4.0.2",
53-
"eslint": "3.19.0",
53+
"eslint": "6.0.1",
5454
"eslint-config-seegno": "9.0.0",
5555
"eslint-plugin-babel": "4.1.1",
5656
"fetch-mock": "5.10.0",

src/core/utils/request-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function normalizeURI(uri) {
3232

3333
export function buildUrl(uri, baseUrl, version, queryParams) {
3434
// Check if the `uri` is actually an url.
35-
if (new RegExp(/^http(s?)\:\/\//).test(uri)) {
35+
if (new RegExp(/^http(s?):\/\//).test(uri)) {
3636
return uri;
3737
}
3838

test/core/sdk.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,12 +318,12 @@ describe('SDK', () => {
318318
sdk.api('/bar'),
319319
sdk.api('/biz', { authenticate: false })
320320
])
321-
.then(() => {
322-
expect(sdk.client.request.mock.calls.length).toBe(3);
323-
expect(sdk.client.request.mock.calls[0][0]).toBe('https://api.uphold.com/v0/biz');
324-
expect(sdk.client.request.mock.calls[1][0]).toBe('https://api.uphold.com/v0/foo');
325-
expect(sdk.client.request.mock.calls[2][0]).toBe('https://api.uphold.com/v0/bar');
326-
});
321+
.then(() => {
322+
expect(sdk.client.request.mock.calls.length).toBe(3);
323+
expect(sdk.client.request.mock.calls[0][0]).toBe('https://api.uphold.com/v0/biz');
324+
expect(sdk.client.request.mock.calls[1][0]).toBe('https://api.uphold.com/v0/foo');
325+
expect(sdk.client.request.mock.calls[2][0]).toBe('https://api.uphold.com/v0/bar');
326+
});
327327
});
328328
});
329329

0 commit comments

Comments
 (0)