obrandDBWork/test/db-company.js
Martin Donnelly 2b60bc78cf Init
2016-03-15 14:49:39 +00:00

28 lines
515 B
JavaScript

/**
*
* User: Martin Donnelly
* Date: 2016-03-15
* Time: 14:26
*
*/
"use strict";
var should = require('should');
var assert = require('assert');
var db = require('../units/db-connector').dbConnection;
var dbCompany = require('../units/db-company')(db);
describe('abc Setup DB', function() {
it('should not add user with no data', function() {
return dbCompany.addNewCompany({}).then(function() {
})
.catch(function(err) {
assert.notEqual(err, null);
});
});
});