Skip to content

Commit

Permalink
move constant to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Oct 30, 2024
1 parent 6edfaa0 commit 7086413
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/stories/create-collection/CreateCollection.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { MetadataBlockInfoMockRepository } from '../shared-mock-repositories/met
import { MetadataBlockInfoMockLoadingRepository } from '../shared-mock-repositories/metadata-block-info/MetadataBlockInfoMockLoadingRepository'
import { MetadataBlockInfoMockErrorRepository } from '../shared-mock-repositories/metadata-block-info/MetadataBlockInfoMockErrorRepository'

import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper'
import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS'

const meta: Meta<typeof CreateCollection> = {
title: 'Pages/Create Collection',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/react'
import { WithI18next } from '../../WithI18next'
import AddDataActionsButton from '../../../sections/shared/add-data-actions/AddDataActionsButton'

import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper'
import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS'

const meta: Meta<typeof AddDataActionsButton> = {
title: 'Sections/Shared/AddDataActions/AddDataActionsButton',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import { CollectionRepository } from '@/collection/domain/repositories/Collectio
import { CollectionItemsMother } from '@tests/component/collection/domain/models/CollectionItemsMother'
import { CollectionItemType } from '@/collection/domain/models/CollectionItemType'

import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper'

const ROOT_COLLECTION_ALIAS = 'root'
const collectionRepository: CollectionRepository = {} as CollectionRepository

const totalItemCount = 200
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e-integration/shared/collection/CollectionHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ export class CollectionHelper extends DataverseApiHelper {
return collectionResponse
}
}

export const ROOT_COLLECTION_ALIAS = 'root'
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ROOT_COLLECTION_ALIAS = 'root'
2 changes: 1 addition & 1 deletion tests/e2e-integration/shared/datasets/DatasetHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FileData } from '../files/FileHelper'
import { DatasetLockReason } from '../../../../src/dataset/domain/models/Dataset'
import { TestsUtils } from '../TestsUtils'

import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/CollectionHelper'
import { ROOT_COLLECTION_ALIAS } from '@tests/e2e-integration/shared/collection/ROOT_COLLECTION_ALIAS'

export interface DatasetResponse {
persistentId: string
Expand Down

0 comments on commit 7086413

Please sign in to comment.