Skip to content

Commit

Permalink
fix: expressions in concordance search glossaries (crowdin#399)
Browse files Browse the repository at this point in the history
Co-authored-by: Nazar Lysyi <[email protected]>
  • Loading branch information
NazarLysyi and Nazar Lysyi authored Jul 3, 2024
1 parent fe13092 commit 60758d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/glossaries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,11 @@ export namespace GlossariesModel {
export interface ConcordanceSearchRequest extends PaginationOptions {
sourceLanguageId: string;
targetLanguageId: string;
expression: string;
expressions: string[];
/**
* @deprecated
*/
expression?: string;
}

export interface ConcordanceSearchResponse {
Expand Down
4 changes: 2 additions & 2 deletions tests/glossaries/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ describe('Glossaries API', () => {
{
sourceLanguageId: termLanguageId,
targetLanguageId: termLanguageId,
expression: 'Welcome!',
expressions: ['Welcome!'],
},
{
reqheaders: {
Expand Down Expand Up @@ -482,7 +482,7 @@ describe('Glossaries API', () => {
const res = await api.concordanceSearch(projectId, {
sourceLanguageId: termLanguageId,
targetLanguageId: termLanguageId,
expression: 'Welcome!',
expressions: ['Welcome!'],
});
expect(res.data.length).toBe(1);
expect(res.data[0].data.glossary.id).toBe(glossaryId);
Expand Down

0 comments on commit 60758d2

Please sign in to comment.