-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from kontent-ai/contributors-api
feat: adds support for `contributors` & `note` API
- Loading branch information
Showing
8 changed files
with
55 additions
and
5 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
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
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 |
---|---|---|
|
@@ -78,7 +78,13 @@ describe('Upsert language variant', () => { | |
}, | ||
due_date: { | ||
value: null | ||
} | ||
}, | ||
note: 'x', | ||
contributors: [ | ||
{ | ||
email: '[email protected]' | ||
} | ||
] | ||
}; | ||
}) | ||
.toPromise(); | ||
|
@@ -188,6 +194,8 @@ describe('Upsert language variant', () => { | |
expect(variant.workflow.stepIdentifier.id).toEqual(originalItem.workflow.step_identifier.id); | ||
expect(variant.item).toEqual(jasmine.any(SharedModels.ReferenceObject)); | ||
expect(variant.language).toEqual(jasmine.any(SharedModels.ReferenceObject)); | ||
expect(variant.note).toEqual(originalItem.note); | ||
expect(variant.contributors).toEqual(originalItem.contributors); | ||
|
||
variant.elements.forEach((element) => { | ||
const originalElement = originalItem.elements.find((m) => m.element.id === element.element.id); | ||
|
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