Skip to content
Permalink
Browse files
removed pointless try-catch
  • Loading branch information
aa7401 committed Sep 15, 2019
1 parent 3749913 commit 6a7df6033b38dcc551418043b71588fd1ee4780e
Showing 1 changed file with 4 additions and 9 deletions.
@@ -7,15 +7,10 @@ describe('register()', () => {

test('register a valid account', async done => {
expect.assertions(1)
try {
const account = await new Accounts()
const register = await account.register('doej', 'password')
expect(register).toBe(true)
} catch(err) {
done.fail(err)
} finally {
done()
}
const account = await new Accounts()
const register = await account.register('doej', 'password')
expect(register).toBe(true)
done()
})

test('register a duplicate username', async done => {

0 comments on commit 6a7df60

Please sign in to comment.