message: test that we can use custom name lookup URLs when handling pending sign-ins
diff: @@ -343,4 +343,31 @@ export function runAuthTests() {
  t.fail('Should not error')
  })
  })
  +
  + test('handlePendingSignIn with authResponseToken, transit key and custom nameLookupUrl', (t) => {
  + t.plan(1)
  +
  + const customNameLookupUrl = 'https://test.name.lookups/v1/names/'
  + const url = `${customNameLookupUrl}ryan.id`
  +
  + FetchMock.get(url, sampleNameRecords.ryan)
  +
  + const appPrivateKey = makeECPrivateKey()
  + const transitPrivateKey = makeECPrivateKey()
  + const transitPublicKey = getPublicKeyFromPrivate(transitPrivateKey)
  + const metadata = {}
  +
  + const authResponse = makeAuthResponse(privateKey, sampleProfiles.ryan, 'ryan.id',
  + metadata, undefined, appPrivateKey, undefined,
  + transitPublicKey, undefined, customNameLookupUrl)
  +
  + handlePendingSignIn(null, authResponse, transitPrivateKey)
  + .then(() => {
  + t.pass('Should correctly sign in with auth response')
  + })
  + .catch((err) => {
  + console.log(err.stack)
  + t.fail('Should not error')
  + })
  + })
  }
  