Skip to content

Commit

Permalink
test: fix create different collection alias on functional
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Jan 13, 2025
1 parent 1de7036 commit a18e20a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { ROOT_COLLECTION_ID } from '../../../src/collections/domain/models/Collection'

describe('execute', () => {
const testCollectionAlias = 'collectionsRepositoryTestCollection'
const testCollectionAlias = 'getCollectionsFeaturedItemsTest'
let testFeaturedItemId: number

beforeEach(async () => {
Expand Down Expand Up @@ -59,7 +59,7 @@ describe('execute', () => {
expect(featuredItemsResponse[0].displayOrder).toBe(1)
// expect(featuredItemsResponse[0].content).toBe('<p class="rte-paragraph">Test content</p>')
expect(featuredItemsResponse[0].imageFileUrl).toBe(
'http://localhost:8080/api/access/dataverseFeatureItemImage/1'
`http://localhost:8080/api/access/dataverseFeatureItemImage/${featuredItemsResponse[0].id}`
)
expect(featuredItemsResponse[0].imageFileName).toBe('featured-item-test-image.png')
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
//TODO:ME - After content sanitization is fixed in backend, check if the content is being updated correctly keeping classes, href, rel, target, etc attributes.

describe('execute', () => {
const testCollectionAlias = 'collectionsRepositoryTestCollection'
const testCollectionAlias = 'updateCollectionFeaturedItemsTest'

beforeEach(async () => {
ApiConfig.init(
Expand Down

0 comments on commit a18e20a

Please sign in to comment.