From 7e1e61f8af1052d651e6179da74d9af45afe1372 Mon Sep 17 00:00:00 2001 From: Liyas Thomas Date: Sun, 27 Sep 2020 23:34:15 +0530 Subject: [PATCH] chores: Lint + dependency update --- .../collections/import-export-collections.vue | 5 +++- components/realtime/socketio.vue | 20 ++++++-------- components/ui/__tests__/autocomplete.spec.js | 8 +++--- components/ui/url-field.vue | 12 ++++++--- functions/package.json | 4 +-- helpers/__tests__/network.spec.js | 26 ++++++++----------- helpers/codegen/codegen.js | 2 +- helpers/lenses/__tests__/lenses.spec.js | 8 +++--- .../__tests__/AxiosStrategy-Proxy.spec.js | 10 +++---- .../__tests__/ExtensionStrategy.spec.js | 10 +++---- package-lock.json | 24 ++++++++--------- package.json | 2 +- 12 files changed, 63 insertions(+), 68 deletions(-) diff --git a/components/collections/import-export-collections.vue b/components/collections/import-export-collections.vue index 4b4100d83..dbba1f8f2 100644 --- a/components/collections/import-export-collections.vue +++ b/components/collections/import-export-collections.vue @@ -323,7 +323,10 @@ export default { return Object.prototype.hasOwnProperty.call(item, "item") }, isSubFolder(item) { - return Object.prototype.hasOwnProperty.call(item, "_postman_isSubFolder") && item._postman_isSubFolder + return ( + Object.prototype.hasOwnProperty.call(item, "_postman_isSubFolder") && + item._postman_isSubFolder + ) }, flattenPostmanItem(subFolder, subFolderGlue = " -- ") { delete subFolder._postman_isSubFolder diff --git a/components/realtime/socketio.vue b/components/realtime/socketio.vue index 2d0239645..a012bc0e7 100644 --- a/components/realtime/socketio.vue +++ b/components/realtime/socketio.vue @@ -14,14 +14,10 @@ />
-
  • - - -
  • +
  • + + +
  • @@ -125,11 +121,11 @@ export default { ] try { - if(!this.path){ - this.path = '/socket.io' + if (!this.path) { + this.path = "/socket.io" } - this.io = new io(this.url,{ - path: this.path + this.io = new io(this.url, { + path: this.path, }) // Add ability to listen to all events wildcard(io.Manager)(this.io) diff --git a/components/ui/__tests__/autocomplete.spec.js b/components/ui/__tests__/autocomplete.spec.js index 40463bf4e..663b8c35e 100644 --- a/components/ui/__tests__/autocomplete.spec.js +++ b/components/ui/__tests__/autocomplete.spec.js @@ -89,7 +89,7 @@ describe("autocomplete", () => { await selectedSuggestion.trigger("click") await wrapper.vm.$nextTick() - expect(input.element.value).toEqual("b" + selectedText) + expect(input.element.value).toEqual(`b${selectedText}`) }) test("hide selection on pressing ESC", async () => { @@ -255,7 +255,7 @@ describe("autocomplete", () => { }) await wrapper.vm.$nextTick() - expect(input.element.value).toEqual("a" + selectedSuggestion) + expect(input.element.value).toEqual(`a${selectedSuggestion}`) }) test("pressing tab when nothing is selected selects the first suggestion", async () => { @@ -272,7 +272,7 @@ describe("autocomplete", () => { }) await wrapper.vm.$nextTick() - expect(input.element.value).toEqual("a" + firstSuggestionText) + expect(input.element.value).toEqual(`a${firstSuggestionText}`) }) test("pressing any non-special key doesn't do anything", async () => { @@ -294,6 +294,6 @@ describe("autocomplete", () => { }) await wrapper.vm.$nextTick() - expect(input.element.value).toEqual("a" + selectedSuggestion) + expect(input.element.value).toEqual(`a${selectedSuggestion}`) }) }) diff --git a/components/ui/url-field.vue b/components/ui/url-field.vue index 204d6dbee..403bf41d0 100644 --- a/components/ui/url-field.vue +++ b/components/ui/url-field.vue @@ -1,20 +1,24 @@ + +