@@ -153,7 +153,7 @@ describe("Client _finishAuthentication", function () {
153153
154154 it ( "should return error when _renewSecret fails" , function ( done ) {
155155 sinon . stub ( client . http , "request" ) . yields ( null , { success : true , dvsRegister : { test : 1 } } ) ;
156- var renewSecretStub = sinon . stub ( client , "_renewSecret" ) . yields ( new Error ( "Renew secret error" ) ) ;
156+ sinon . stub ( client , "_renewSecret" ) . yields ( new Error ( "Renew secret error" ) ) ;
157157
158158 client . _finishAuthentication ( "test@example.com" , 1234 , [ "dvs-auth" ] , "authOTT" , function ( err ) {
159159 expect ( err ) . to . exist ;
@@ -240,7 +240,7 @@ describe("Client _renewSecret", function () {
240240 client . _createMPinID . restore && client . _createMPinID . restore ( ) ;
241241 client . _getSecret . restore && client . _getSecret . restore ( ) ;
242242 client . _createIdentity . restore && client . _createIdentity . restore ( ) ;
243- } )
243+ } ) ;
244244} ) ;
245245
246246describe ( "Client _authentication" , function ( ) {
@@ -275,7 +275,7 @@ describe("Client _authentication", function () {
275275 var getPass2Stub = sinon . stub ( client , "_getPass2" ) . yields ( null , { } ) ;
276276 var finishAuthenticationStub = sinon . stub ( client , "_finishAuthentication" ) . yields ( null , { success : true } ) ;
277277
278- client . _authentication ( "test@example.com" , "1234" , [ ' oidc' ] , function ( err , data ) {
278+ client . _authentication ( "test@example.com" , "1234" , [ " oidc" ] , function ( err , data ) {
279279 expect ( err ) . to . be . null ;
280280 expect ( data ) . to . deep . equal ( { success : true } ) ;
281281 expect ( getPass1Stub . calledOnce ) . to . be . true ;
@@ -288,7 +288,7 @@ describe("Client _authentication", function () {
288288 it ( "should call callback with error when _getPass1 fails" , function ( done ) {
289289 sinon . stub ( client , "_getPass1" ) . yields ( new Error ( "Request error" ) , null ) ;
290290
291- client . _authentication ( "test@example.com" , "1234" , [ ' oidc' ] , function ( err , data ) {
291+ client . _authentication ( "test@example.com" , "1234" , [ " oidc" ] , function ( err , data ) {
292292 expect ( err ) . to . exist ;
293293 expect ( data ) . to . be . null ;
294294 done ( ) ;
@@ -298,7 +298,7 @@ describe("Client _authentication", function () {
298298 it ( "should call callback with error when MPIN ID has expired" , function ( done ) {
299299 sinon . stub ( client , "_getPass1" ) . yields ( new Error ( "Request error" ) , { error : "EXPIRED_MPINID" } ) ;
300300
301- client . _authentication ( "test@example.com" , "1234" , [ ' oidc' ] , function ( err , data ) {
301+ client . _authentication ( "test@example.com" , "1234" , [ " oidc" ] , function ( err , data ) {
302302 expect ( err ) . to . exist ;
303303 expect ( err . message ) . to . equal ( "Revoked" ) ;
304304 expect ( data ) . to . be . null ;
@@ -309,7 +309,7 @@ describe("Client _authentication", function () {
309309 it ( "should call callback with error when _getPass1 fails" , function ( done ) {
310310 sinon . stub ( client , "_getPass1" ) . yields ( new Error ( "Request error" ) , null ) ;
311311
312- client . _authentication ( "test@example.com" , "1234" , [ ' oidc' ] , function ( err , data ) {
312+ client . _authentication ( "test@example.com" , "1234" , [ " oidc" ] , function ( err , data ) {
313313 expect ( err ) . to . exist ;
314314 expect ( data ) . to . be . null ;
315315 done ( ) ;
@@ -320,7 +320,7 @@ describe("Client _authentication", function () {
320320 sinon . stub ( client , "_getPass1" ) . yields ( null , { success : true } ) ;
321321 sinon . stub ( client , "_getPass2" ) . yields ( new Error ( "Request error" ) , null ) ;
322322
323- client . _authentication ( "test@example.com" , "1234" , [ ' oidc' ] , function ( err , data ) {
323+ client . _authentication ( "test@example.com" , "1234" , [ " oidc" ] , function ( err , data ) {
324324 expect ( err ) . to . exist ;
325325 expect ( data ) . to . be . null ;
326326 done ( ) ;
@@ -549,7 +549,7 @@ describe("Client generateQuickCode", function () {
549549
550550 it ( "should call _authentication with scope 'reg-code'" , function ( done ) {
551551 var authenticationStub = sinon . stub ( client , "_authentication" ) . yields ( null , { } ) ;
552- var requestStub = sinon . stub ( client . http , "request" ) . yields ( null , { code : "123456" , ttlSeconds : 60 , expireTime : 1737520575 } ) ;
552+ sinon . stub ( client . http , "request" ) . yields ( null , { code : "123456" , ttlSeconds : 60 , expireTime : 1737520575 } ) ;
553553
554554 client . generateQuickCode ( "test@example.com" , "1234" , function ( err , data ) {
555555 expect ( err ) . to . be . null ;
@@ -564,7 +564,7 @@ describe("Client generateQuickCode", function () {
564564 } ) ;
565565
566566 it ( "should fail on _authentication error" , function ( done ) {
567- var authenticationStub = sinon . stub ( client , "_authentication" ) . yields ( new Error ( "Authentication fail" ) , null ) ;
567+ sinon . stub ( client , "_authentication" ) . yields ( new Error ( "Authentication fail" ) , null ) ;
568568
569569 client . generateQuickCode ( "test@example.com" , "1234" , function ( err , data ) {
570570 expect ( err ) . to . exist ;
@@ -575,8 +575,8 @@ describe("Client generateQuickCode", function () {
575575 } ) ;
576576
577577 it ( "should fail on verification/quickcode request error" , function ( done ) {
578- var authenticationStub = sinon . stub ( client , "_authentication" ) . yields ( null , { } ) ;
579- var requestStub = sinon . stub ( client . http , "request" ) . yields ( new Error ( "Request error" ) , null ) ;
578+ sinon . stub ( client , "_authentication" ) . yields ( null , { } ) ;
579+ sinon . stub ( client . http , "request" ) . yields ( new Error ( "Request error" ) , null ) ;
580580
581581 client . generateQuickCode ( "test@example.com" , "1234" , function ( err , data ) {
582582 expect ( err ) . to . exist ;
0 commit comments