Skip to content

Commit 93c72c5

Browse files
Merge pull request #5346 from nextcloud/renovate/stable28-nextcloud-router-2.x
fix(deps): update dependency @nextcloud/router to ^2.2.1 (stable28)
2 parents 848b904 + 844a213 commit 93c72c5

File tree

8 files changed

+16
-14
lines changed

8 files changed

+16
-14
lines changed

cypress/e2e/api/SessionApi.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ describe('The session Api', function() {
3838
config: { modRewriteWorking: false },
3939
webroot: '',
4040
}
41+
window._oc_webroot = ''
4142
})
4243

4344
beforeEach(function() {

cypress/e2e/api/SyncServiceProvider.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ describe('Sync service provider', function() {
3434
cy.createUser(user)
3535
window.OC = {
3636
config: { modRewriteWorking: false },
37-
webroot: '',
3837
}
38+
window._oc_webroot = ''
3939
})
4040

4141
beforeEach(function() {

cypress/e2e/api/UsersApi.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ describe('The user mention API', function() {
3232
cy.createUser(user)
3333
window.OC = {
3434
config: { modRewriteWorking: false },
35-
webroot: '',
3635
}
36+
window._oc_webroot = ''
3737
})
3838

3939
let fileId

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
return string
2525
}
2626
OC = {
27-
webroot: '/dist/OC_WEBROOT',
2827
config: {},
2928
isUserAdmin() {
3029
return true
3130
}
3231
}
32+
_oc_webroot = '/dist/OC_WEBROOT'
3333
</script>
3434
<script type="module">
3535
import { RichTextReader, AttachmentResolver, ATTACHMENT_RESOLVER } from './src/package.js'

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@nextcloud/l10n": "^2.2.0",
4848
"@nextcloud/logger": "^2.7.0",
4949
"@nextcloud/moment": "^1.3.1",
50-
"@nextcloud/router": "^2.2.0",
50+
"@nextcloud/router": "^2.2.1",
5151
"@nextcloud/vue": "^8.11.0",
5252
"@quartzy/markdown-it-mentions": "^0.2.0",
5353
"@tiptap/core": "^2.1.13",

src/tests/helpers/links.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ global.OCA = {
88

99
global.OC = {
1010
config: {modRewriteWorking: true},
11-
webroot: ''
1211
}
1312

13+
global._oc_webroot = ''
14+
1415
describe('Preparing href attributes for the DOM', () => {
1516

1617
test('leave empty hrefs alone', () => {

src/tests/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jest.mock('@nextcloud/dialogs', () => ({
4747

4848
global.OC = {
4949
requestToken: '123',
50-
webroot: '/nc-webroot',
5150
coreApps: [
5251
'core',
5352
],
@@ -74,6 +73,7 @@ global.OC = {
7473
}
7574
}
7675

76+
global._oc_webroot = '/nc-webroot'
7777
global.OCA = {}
7878

7979

0 commit comments

Comments
 (0)