mirror of
https://github.com/documenso/documenso.git
synced 2026-08-26 00:02:43 +10:00
fix(signing): use default for empty signing reason
This commit is contained in:
@@ -13,6 +13,12 @@ describe('NEXT_PRIVATE_SIGNING_REASON', () => {
|
||||
expect(NEXT_PRIVATE_SIGNING_REASON()).toBe('Signed by Documenso');
|
||||
});
|
||||
|
||||
it('uses the default for an empty signing reason', () => {
|
||||
vi.stubEnv('NEXT_PRIVATE_SIGNING_REASON', '');
|
||||
|
||||
expect(NEXT_PRIVATE_SIGNING_REASON()).toBe('Signed by Documenso');
|
||||
});
|
||||
|
||||
it('uses the configured signing reason verbatim', () => {
|
||||
vi.stubEnv('NEXT_PRIVATE_SIGNING_REASON', 'Signed by Objective');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user