Skip to content

Commit

Permalink
test(upgrade): adjust to new @nextcloud/router webroot
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud authored and mejo- committed Mar 3, 2024
1 parent fe726d6 commit ea3714c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/api/SessionApi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('The session Api', function() {
config: { modRewriteWorking: false },
webroot: '',
}
window._oc_webroot = ''
})

beforeEach(function() {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/api/SyncServiceProvider.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ describe('Sync service provider', function() {
cy.createUser(user)
window.OC = {
config: { modRewriteWorking: false },
webroot: '',
}
window._oc_webroot = ''
})

beforeEach(function() {
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/api/UsersApi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ describe('The user mention API', function() {
cy.createUser(user)
window.OC = {
config: { modRewriteWorking: false },
webroot: '',
}
window._oc_webroot = ''
})

let fileId
Expand Down
2 changes: 1 addition & 1 deletion src/tests/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ jest.mock('@nextcloud/dialogs', () => ({

global.OC = {
requestToken: '123',
webroot: '/nc-webroot',
coreApps: [
'core',
],
Expand All @@ -74,6 +73,7 @@ global.OC = {
}
}

global._oc_webroot = '/nc-webroot'
global.OCA = {}


Expand Down

0 comments on commit ea3714c

Please sign in to comment.