@@ -203,7 +203,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
203
203
} ) ;
204
204
} ) ;
205
205
206
- describe ( '#getPDFAttestation ' , function ( ) {
206
+ describe ( '#getPDFCertificate ' , function ( ) {
207
207
describe ( 'when the attestation is for v3' , function ( ) {
208
208
it ( 'should return attestation in PDF binary format' , async function ( ) {
209
209
// given
@@ -232,7 +232,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
232
232
} ;
233
233
234
234
// when
235
- const response = await certificateController . getPDFAttestation ( request , hFake , {
235
+ const response = await certificateController . getPDFCertificate ( request , hFake , {
236
236
v3CertificationAttestationPdf : generatePdfStub ,
237
237
} ) ;
238
238
@@ -281,7 +281,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
281
281
. resolves ( { buffer : attestationPDF , fileName : filename } ) ;
282
282
283
283
// when
284
- const response = await certificateController . getPDFAttestation ( request , hFake , {
284
+ const response = await certificateController . getPDFCertificate ( request , hFake , {
285
285
certificationAttestationPdf : certificationAttestationPdfStub ,
286
286
} ) ;
287
287
@@ -292,7 +292,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
292
292
} ) ;
293
293
} ) ;
294
294
295
- describe ( '#getCertificationPDFAttestationsForSession ' , function ( ) {
295
+ describe ( '#getSessionCertificates ' , function ( ) {
296
296
describe ( 'when attestations are for a v3 session' , function ( ) {
297
297
it ( 'should return attestation in PDF binary format' , async function ( ) {
298
298
// given
@@ -322,7 +322,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
322
322
} ;
323
323
324
324
// when
325
- const response = await certificateController . getCertificationPDFAttestationsForSession ( request , hFake , {
325
+ const response = await certificateController . getSessionCertificates ( request , hFake , {
326
326
v3CertificationAttestationPdf : generatePdfStub ,
327
327
} ) ;
328
328
@@ -393,7 +393,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
393
393
. resolves ( { buffer : attestationPDF } ) ;
394
394
395
395
// when
396
- const response = await certificateController . getCertificationPDFAttestationsForSession ( request , hFake , {
396
+ const response = await certificateController . getSessionCertificates ( request , hFake , {
397
397
certificationAttestationPdf,
398
398
} ) ;
399
399
@@ -406,7 +406,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
406
406
} ) ;
407
407
} ) ;
408
408
409
- describe ( '#downloadCertificationAttestationsForDivision ' , function ( ) {
409
+ describe ( '#downloadDivisionCertificates ' , function ( ) {
410
410
const now = new Date ( '2019-01-01T05:06:07Z' ) ;
411
411
let clock ;
412
412
@@ -450,7 +450,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
450
450
} ;
451
451
452
452
// when
453
- const response = await certificateController . downloadCertificationAttestationsForDivision ( request , hFake , {
453
+ const response = await certificateController . downloadDivisionCertificates ( request , hFake , {
454
454
v3CertificationAttestationPdf : generatePdfStub ,
455
455
} ) ;
456
456
@@ -508,11 +508,7 @@ describe('Certification | Results | Unit | Application | certificate-controller'
508
508
. resolves ( { buffer : attestationsPDF } ) ;
509
509
510
510
// when
511
- const response = await certificateController . downloadCertificationAttestationsForDivision (
512
- request ,
513
- hFake ,
514
- dependencies ,
515
- ) ;
511
+ const response = await certificateController . downloadDivisionCertificates ( request , hFake , dependencies ) ;
516
512
517
513
// then
518
514
expect ( response . source ) . to . deep . equal ( attestationsPDF ) ;
0 commit comments