Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Nov 29, 2024
1 parent 58a4329 commit 9b5d880
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,14 @@ const fileExpectedData = (id: number): File => {
}

describe('File JSDataverse Repository', () => {
before(() => {
TestsUtils.setup()
})
beforeEach(() => {
TestsUtils.login()
TestsUtils.login().then((token) => {
if (!token) {
throw new Error('Token not found after Keycloak login')
}

cy.wrap(TestsUtils.setup(token))
})
})

const compareMetadata = (fileMetadata: FileMetadata, expectedFileMetadata: FileMetadata) => {
Expand Down
12 changes: 7 additions & 5 deletions tests/e2e-integration/integration/files/FileUpload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ const fileRepository = new FileJSDataverseRepository()
const datasetRepository = new DatasetJSDataverseRepository()

describe('DirectUpload', () => {
before(() => {
TestsUtils.setup()
})

beforeEach(() => {
TestsUtils.login()
TestsUtils.login().then((token) => {
if (!token) {
throw new Error('Token not found after Keycloak login')
}

cy.wrap(TestsUtils.setup(token))
})
})

it('should upload file and add it to the dataset', async () => {
Expand Down

0 comments on commit 9b5d880

Please sign in to comment.