-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add tests for new content tags editing
- Loading branch information
1 parent
b9e9657
commit 63e965c
Showing
6 changed files
with
207 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { default as taxonomyTagsMock } from './taxonomyTagsMock'; | ||
export { default as contentTaxonomyTagsMock } from './contentTaxonomyTagsMock'; | ||
export { default as contentDataMock } from './contentDataMock'; | ||
export { default as updateContentTaxonomyTagsMock } from './updateContentTaxonomyTagsMock'; |
25 changes: 25 additions & 0 deletions
25
src/content-tags-drawer/__mocks__/updateContentTaxonomyTagsMock.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports = { | ||
'block-v1:SampleTaxonomyOrg1+STC1+2023_1+type@vertical+block@aaf8b8eb86b54281aeeab12499d2cb0b': { | ||
taxonomies: [ | ||
{ | ||
name: 'FlatTaxonomy', | ||
taxonomyId: 3, | ||
editable: true, | ||
tags: [ | ||
{ | ||
value: 'flat taxonomy tag 100', | ||
lineage: [ | ||
'flat taxonomy tag 100', | ||
], | ||
}, | ||
{ | ||
value: 'flat taxonomy tag 3856', | ||
lineage: [ | ||
'flat taxonomy tag 3856', | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters