@@ -31,7 +31,7 @@ describe('The Notification API', (): void => {
31
31
} )
32
32
33
33
it ( 'should send notifications' , async ( ) : Promise < void > => {
34
- const notification = new Notification ( configuration , confluence , transportStub )
34
+ const notification = new Notification ( configuration , '' , confluence , transportStub )
35
35
const documentInfo = new DocumentInfo ( 0 , 'author' , moment ( ) , 'message' , 'title' , 'http://example.com' )
36
36
await notification . notify ( documentInfo )
37
37
chai . expect ( ( transportStub as unknown as SinonStubbedInstance < Mail > ) . sendMail . calledOnce ) . to . be . true
@@ -45,7 +45,7 @@ describe('The Notification API', (): void => {
45
45
) . to . be . true
46
46
} )
47
47
it ( 'should use a maintainer when configured' , async ( ) : Promise < void > => {
48
- const notification = new Notification ( configuration , confluence , transportStub )
48
+ const notification = new Notification ( configuration , '' , confluence , transportStub )
49
49
const documentInfo = new DocumentInfo ( 0 , 'author2' , moment ( ) , 'message' , 'Test2' , 'http://example.com' )
50
50
await notification . notify ( documentInfo )
51
51
chai . expect ( ( transportStub as unknown as SinonStubbedInstance < Mail > ) . sendMail . calledOnce ) . to . be . true
@@ -59,7 +59,7 @@ describe('The Notification API', (): void => {
59
59
) . to . be . true
60
60
} )
61
61
it ( 'should not send notifications on a dry run' , async ( ) : Promise < void > => {
62
- const notification = new Notification ( configuration , confluence , transportStub , true )
62
+ const notification = new Notification ( configuration , '' , confluence , transportStub , true )
63
63
const documentInfo = new DocumentInfo ( 0 , 'author' , moment ( ) , 'message' , 'title' , 'http://example.com' )
64
64
await notification . notify ( documentInfo )
65
65
chai . expect ( ( transportStub as unknown as SinonStubbedInstance < Mail > ) . sendMail . notCalled ) . to . be . true
0 commit comments