Skip to content

Commit

Permalink
feat: Add isPublic property to ReportSettings (crowdin#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
abuna1985 authored Oct 20, 2023
1 parent e449f8c commit 1d6db99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/reports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ export namespace ReportsModel {
currency: Currency;
unit: Unit;
config: ReportSettinsConfig;
isPublic: boolean;
createdAt: string;
updatedAt: string;
}
Expand Down
3 changes: 3 additions & 0 deletions tests/reports/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('Reports API', () => {
baseRates: { fullTranslation: 0, proofread: 0 },
netRateSchemes: [],
};
const isPublic = false;

beforeAll(() => {
scope = nock(api.url)
Expand Down Expand Up @@ -170,6 +171,7 @@ describe('Reports API', () => {
currency,
unit,
config,
isPublic,
},
{
reqheaders: {
Expand Down Expand Up @@ -291,6 +293,7 @@ describe('Reports API', () => {
currency,
name: reportName,
unit,
isPublic,
});
expect(template.data.id).toBe(reportSettingsTemplateId);
});
Expand Down

0 comments on commit 1d6db99

Please sign in to comment.