Created
October 22, 2016 15:01
-
-
Save bobbravo2/b7d96abb163332a3d067919536ce50c7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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