Skip to content

Instantly share code, notes, and snippets.

@bobbravo2
Created October 22, 2016 15:01
Show Gist options
  • Save bobbravo2/b7d96abb163332a3d067919536ce50c7 to your computer and use it in GitHub Desktop.
Save bobbravo2/b7d96abb163332a3d067919536ce50c7 to your computer and use it in GitHub Desktop.
describe('Person Unit Tests', function (){
var person;
beforeEach(function (){
person = require("../models/")["Person"];
});
it('Should run', function (){
expect(true).toBe(true);
});
it('Should fetch tables', function (done){
person.create({name: "Bob"}).then(function (){
person.findOne({where: {name: "Bob"}}).then(function (row){
console.log('row', row);
done();
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment