Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1598 from owncloud/dependabot/npm_and_yarn/filesi…
Browse files Browse the repository at this point in the history
…ze-8.0.0

Bump filesize from 7.0.0 to 8.0.0
  • Loading branch information
Pascal Wengerter authored Aug 24, 2021
2 parents 07d3e65 + 1849b22 commit 38a32b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.2.0",
"file-loader": "^6.2.0",
"filesize": "^7.0.0",
"filesize": "^8.0.0",
"focus-trap": "^6.4.0",
"focus-trap-vue": "^1.1.1",
"friendly-errors-webpack-plugin": "^1.7.0",
Expand Down Expand Up @@ -141,7 +141,7 @@
"yaml": "^1.10.2"
},
"peerDependencies": {
"filesize": "^7.0.0",
"filesize": "^8.0.0",
"focus-trap": "^6.4.0",
"focus-trap-vue": "^1.1.1",
"fuse.js": "^6.4.6",
Expand Down
6 changes: 3 additions & 3 deletions src/components/resource/OcResourceSize.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ describe("OcResourceSize", () => {
size: 24064,
},
})
expect(wrapper.find(".oc-resource-size").text()).toEqual("24 KB")
expect(wrapper.find(".oc-resource-size").text()).toEqual("24 kB")

await wrapper.setProps({
size: 44145049,
})
expect(wrapper.find(".oc-resource-size").text()).toEqual("42.1 MB")
expect(wrapper.find(".oc-resource-size").text()).toEqual("44.1 MB")
})

it("converts strings to numbers", () => {
Expand All @@ -43,7 +43,7 @@ describe("OcResourceSize", () => {
size: "24064",
},
})
expect(wrapper.find(".oc-resource-size").text()).toEqual("24 KB")
expect(wrapper.find(".oc-resource-size").text()).toEqual("24 kB")
})

describe("language is not defined", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/OcTableFiles.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe("OcTableFiles", () => {
})

it("formats the resource size to a human readable format", () => {
expect(wrapper.find(".oc-tbody-tr-forest .oc-table-data-cell-size").text()).toEqual("105.9 MB")
expect(wrapper.find(".oc-tbody-tr-forest .oc-table-data-cell-size").text()).toEqual("111 MB")
expect(wrapper.find(".oc-tbody-tr-documents .oc-table-data-cell-size").text()).toEqual("--")
expect(wrapper.find(".oc-tbody-tr-notes .oc-table-data-cell-size").text()).toEqual("?")
})
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5618,10 +5618,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/filesize/-/filesize-6.1.0.tgz#e81bdaa780e2451d714d71c0d7a4f3238d37ad00"
integrity sha512-LpCHtPQ3sFx67z+uh2HnSyWSLLu5Jxo21795uRDuar/EOuYWXib5EmPaGIBuSnRqH2IODiKA2k5re/K9OnN/Yg==

filesize@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/filesize/-/filesize-7.0.0.tgz#9d4b3ce384ec7731a9e68c64ee29fb4934ad657d"
integrity sha512-Wsstw+O1lZ9gVmOI1thyeQvODsaoId2qw14lCqIzUhoHKXX7T2hVpB7BR6SvgodMBgWccrx/y2eyV8L7tDmY6A==
filesize@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/filesize/-/filesize-8.0.0.tgz#532db71cb8a04df7d403da054a28de1b648534e0"
integrity sha512-sb690gQx3y/5KZIztgWAKM/r4Hf1V3R8mkAE0OhasMw2FDYduFTYCji8YN9BVpsGoMxrHPFvia1BMxwfLHX+fQ==

fill-range@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit 38a32b8

Please sign in to comment.