@@ -1903,7 +1903,7 @@ describe('/account/status', () => {
19031903 } ) ;
19041904
19051905 it ( 'returns passwordlessSupported true for non-existing account when globally enabled' , async ( ) => {
1906- const { route, mockRequest, mockDB } = setup ( {
1906+ const { route, mockRequest } = setup ( {
19071907 extraConfig : {
19081908 passwordlessOtp : {
19091909 enabled : true ,
@@ -1921,7 +1921,7 @@ describe('/account/status', () => {
19211921 } ) ;
19221922
19231923 it ( 'returns passwordlessSupported true for non-existing account with forced email regex' , async ( ) => {
1924- const { route, mockRequest, mockDB } = setup ( {
1924+ const { route, mockRequest } = setup ( {
19251925 extraConfig : {
19261926 passwordlessOtp : {
19271927 enabled : false ,
@@ -1940,7 +1940,7 @@ describe('/account/status', () => {
19401940 } ) ;
19411941
19421942 it ( 'returns passwordlessSupported false for non-existing account when not enabled and email does not match forced regex' , async ( ) => {
1943- const { route, mockRequest, mockDB } = setup ( {
1943+ const { route, mockRequest } = setup ( {
19441944 extraConfig : {
19451945 passwordlessOtp : {
19461946 enabled : false ,
@@ -1959,7 +1959,7 @@ describe('/account/status', () => {
19591959 } ) ;
19601960
19611961 it ( 'does not return passwordlessSupported when thirdPartyAuthStatus is not requested' , async ( ) => {
1962- const { route, mockRequest, mockDB } = setup ( {
1962+ const { route, mockRequest } = setup ( {
19631963 dbOptions : { exists : false } ,
19641964 } ) ;
19651965 mockRequest . payload . thirdPartyAuthStatus = false ;
@@ -5027,7 +5027,9 @@ describe('/account', () => {
50275027 mockPlaySubscriptions . getSubscriptions ,
50285028 uid
50295029 ) ;
5030- assert . deepEqual ( result . subscriptions , [ mockFormattedPlayStoreSubscription ] ) ;
5030+ assert . deepEqual ( result . subscriptions , [
5031+ mockFormattedPlayStoreSubscription ,
5032+ ] ) ;
50315033 }
50325034 ) ;
50335035 } ) ;
@@ -5169,7 +5171,9 @@ describe('/account', () => {
51695171 mockAppStoreSubscriptions . getSubscriptions ,
51705172 uid
51715173 ) ;
5172- assert . deepEqual ( result . subscriptions , [ mockFormattedAppStoreSubscription ] ) ;
5174+ assert . deepEqual ( result . subscriptions , [
5175+ mockFormattedAppStoreSubscription ,
5176+ ] ) ;
51735177 }
51745178 ) ;
51755179 } ) ;
@@ -5248,15 +5252,23 @@ describe('/account', () => {
52485252 it ( 'should return account metadata and 2FA status' , ( ) => {
52495253 return runTest ( buildRoute ( ) , request , ( result ) => {
52505254 assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'createdAt' ) ) ;
5251- assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'passwordCreatedAt' ) ) ;
5255+ assert . ok (
5256+ Object . prototype . hasOwnProperty . call ( result , 'passwordCreatedAt' )
5257+ ) ;
52525258 assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'hasPassword' ) ) ;
52535259 assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'emails' ) ) ;
52545260 assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'totp' ) ) ;
52555261 assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'backupCodes' ) ) ;
52565262 assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'recoveryKey' ) ) ;
5257- assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'recoveryPhone' ) ) ;
5258- assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'securityEvents' ) ) ;
5259- assert . ok ( Object . prototype . hasOwnProperty . call ( result , 'linkedAccounts' ) ) ;
5263+ assert . ok (
5264+ Object . prototype . hasOwnProperty . call ( result , 'recoveryPhone' )
5265+ ) ;
5266+ assert . ok (
5267+ Object . prototype . hasOwnProperty . call ( result , 'securityEvents' )
5268+ ) ;
5269+ assert . ok (
5270+ Object . prototype . hasOwnProperty . call ( result , 'linkedAccounts' )
5271+ ) ;
52605272 assert . isArray ( result . emails ) ;
52615273 assert . isArray ( result . securityEvents ) ;
52625274 assert . isArray ( result . linkedAccounts ) ;
0 commit comments