 
   auth.signIn BAD_PASSWORD
     .then ->
-      throw new Error 'Should not have been able to sign in with a bad password'
+      t.fail 'Should not have been able to sign in with a bad password'
 
     .catch (errors) ->
       t.ok errors?.length is 1, 'Should have gotten one error'


  auth.signIn BAD_LOGIN
    .then ->
      throw new Error 'Should not have been able to sign in with a bad login'

    .catch (errors) ->
      t.ok errors?.length is 1, 'Should have gotten one error'

      t.ok user.display_name is TEST_LOGIN, 'Display name should be whatever login was given'

    .catch ->
      t.fail 'Should have worked'

# test 'Registering keeps you signed in', ->

test 'Sign out', (t) ->
  auth.signOut()
    .catch ->
      t.fail 'Sign out should work'

test 'Registering an account with an already used login fails', (t) ->
  DUPLICATE_REGISTRATION =
