Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): Bump @nextcloud/router from 2.2.0 to 3.0.0 #1077

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions __tests__/utils/upload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Initialize chunks upload temporary workspace', () => {

// mock the current location for our assert on the URL
Object.defineProperty(window, 'location', {
value: new URL('https://cloud.domain.com'),
value: new URL('https://cloud.domain.com/index.php/apps/test'),
configurable: true,
})

Expand All @@ -71,7 +71,7 @@ describe('Initialize chunks upload temporary workspace', () => {

const url = await initChunkWorkspace()

expect(url.startsWith('https://cloud.domain.com/remote.php/dav/uploads/test/web-file-upload-')).toBe(true)
expect(url).toMatch('https://cloud.domain.com/remote.php/dav/uploads/test/web-file-upload-')
expect(url.length).toEqual('https://cloud.domain.com/remote.php/dav/uploads/test/web-file-upload-123456789abcdefg'.length)

expect(axiosMock.request).toHaveBeenCalledTimes(1)
Expand All @@ -86,7 +86,7 @@ describe('Initialize chunks upload temporary workspace', () => {

// mock the current location for our assert on the URL
Object.defineProperty(window, 'location', {
value: new URL('https://cloud.domain.com'),
value: new URL('https://cloud.domain.com/index.php/apps/test'),
configurable: true,
})

Expand All @@ -95,7 +95,7 @@ describe('Initialize chunks upload temporary workspace', () => {

const url = await initChunkWorkspace('https://cloud.domain.com/remote.php/dav/files/test/image.jpg')

expect(url.startsWith('https://cloud.domain.com/remote.php/dav/uploads/test/web-file-upload-')).toBe(true)
expect(url).toMatch('https://cloud.domain.com/remote.php/dav/uploads/test/web-file-upload-')
expect(url.length).toEqual('https://cloud.domain.com/remote.php/dav/uploads/test/web-file-upload-123456789abcdefg'.length)

expect(axiosMock.request).toHaveBeenCalledTimes(1)
Expand Down
3 changes: 3 additions & 0 deletions cypress/support/component-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<!-- Nextcloud customizations -->
<link href="https://nextcloud.github.io/server/apps/theming/css/default.css" rel="stylesheet" />
<script type="text/javascript">
// mocking the webroot for @nextcloud/router
window._oc_webroot = ''

window.OC = {
webroot: '',
config: {},
Expand Down
80 changes: 34 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@cypress/vue2": "^2.1.0",
"@nextcloud/eslint-config": "^8.3.0",
"@nextcloud/vite-config": "^1.2.2",
"@tsconfig/cypress": "^1.0.1",
"@tsconfig/cypress": "^1.0.2",
"@types/node": "^20.11.30",
"@vitest/coverage-istanbul": "^1.2.1",
"@vue/tsconfig": "^0.5.1",
Expand All @@ -73,12 +73,12 @@
"@nextcloud/auth": "^2.2.1",
"@nextcloud/axios": "^2.4.0",
"@nextcloud/dialogs": "^5.2.0",
"@nextcloud/files": "^3.1.0",
"@nextcloud/files": "^3.1.1",
"@nextcloud/l10n": "^2.2.0",
"@nextcloud/logger": "^2.7.0",
"@nextcloud/moment": "^1.3.1",
"@nextcloud/paths": "^2.1.0",
"@nextcloud/router": "^2.2.0",
"@nextcloud/router": "^3.0.0",
"axios": "^1.6.8",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
Expand Down
Loading