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
import config from '../src/config' | |
import chai, { expect, should, assert } from 'chai' | |
import _ from 'lodash' | |
const knex = require('knex')(config.database) | |
const bookshelf = require('bookshelf')(knex) | |
const Test = bookshelf.Model.extend({ | |
tableName: 'TEST_ONLY', | |
idAttribute: 'ID', |
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
// sign up | |
account.signUp('[email protected]', 'secret'); | |
// sign in | |
account.signIn('[email protected]', 'secret'); | |
// sign in via oauth | |
account.signInWith('twitter'); | |
// sign out |