mirror of
https://gitlab.silvrtree.co.uk/martind2000/obrandDBWork.git
synced 2025-01-10 21:55:08 +00:00
28 lines
515 B
JavaScript
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);
|
|
});
|
|
|
|
});
|
|
});
|