Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
WebsiteProject/unit tests/accounts.spec.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (35 sloc)
717 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const Accounts = require('../modules/accounts.js') | |
describe('register()', () => { | |
test('register a valid account', async done => { | |
expect.assertions(1) | |
try { | |
const account = await new Accounts() | |
// test goes here | |
} catch(err) { | |
} finally { | |
} | |
}) | |
}) | |
describe('login()', () => { | |
test('log in with valid credentials', done => { | |
expect.assertions(1) | |
try { | |
const account = await new Accounts() | |
// test goes here | |
} catch(err) { | |
} finally { | |
} | |
}) | |
}) | |
describe('checkCredentials()', () => { | |
test('check valid credentials', done => { | |
expect.assertions(1) | |
try { | |
const account = await new Accounts() | |
// test goes here | |
} catch(err) { | |
} finally { | |
} | |
}) | |
}) |