Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.deleteAll = function () {
- return sequelize.drop({logging: false, cascade: true}).then(function() {
- return sequelize.sync({logging: false});
- });
- };
- var testutils = require("../../lib/testutils");
- describe("CRUD Controller", function() {
- beforeEach(function(done) {
- testutils.deleteAll().then(function(){
- done();
- }).catch(function(err) {
- return done(err);
- });
- });
- describe("#read()", function(){
- it("should....", function(done) {
- });
- });
- }
- var testutils = require("../../lib/testutils");
- describe("CRUD Controller", function() {
- beforeEach(function(done) {
- testutils.deleteAll().then(done).catch(function(err) {
- return done(err);
- });
- });
- describe("#read()", function(){
- it("should....", function(done) {
- });
- });
- }
- beforeEach(function(){
- return testutils.deleteAll();
- });
- User.create({name: 'aName'}).then(function(user){console.log(user)});
- User.create({name: 'aName'}).then(console.log);
Add Comment
Please, Sign In to add comment