assert.isFunction(function () {})
describe('Has MailTime Object', () => { it('MailTime is Constructor', () => { assert.isFunction(MailTime, 'MailTime is Constructor'); assert.equal(typeof MailTime.Template === 'string', true, 'mailQueue has Template'); }); it('Change MailTime.Template', () => { assert.equal(MailTime.Template === '{{{html}}}', false, 'mailQueue.Template has original value'); MailTime.Template = '{{{html}}}'; assert.equal(MailTime.Template === '{{{html}}}', true, 'mailQueue.Template has new value'); }); });
it( 'should create a Matrix having setters', function test() { assert.isFunction( mat.set ); assert.isFunction( mat.iset ); assert.isFunction( mat.mset ); assert.isFunction( mat.sset ); });
describe('Library', function() { const DSB = require('../dist/index'); it('should return a function', function() { DSB.should.be.a('function'); }); it('should have findMethodInData()', function() { DSB.should.have.property('findMethodInData'); assert.isFunction(DSB.findMethodInData); }); });
describe('AsyncRedis.decorate', function () { const client = redis.createClient(); const asyncRedisClient = AsyncRedis.decorate(client); it('should have decorated every command', async () => { const commands = redisCommands.list; commands.forEach(command => { assert.isFunction(asyncRedisClient[command], `redis.${command} isn't decorated`); }); }); });
it( 'should create a Matrix having a custom toString method', function test() { assert.isFunction( mat.toString ); });
it('test convenience log methods', function () { var logger = createLogger(); for (var lvl in levels) { if (lvl == "off") { assert.isUndefined(logger[lvl]); } else { assert.isFunction(logger[lvl]); logger[lvl]("test"); level.should.equal(lvl); } } });
describe('Defiant', () => { describe('base object', () => { it('should contain object Defiant.util', () => { assert.isObject(Defiant.util); }); it('should contain Plugin function', () => { assert.isFunction(Defiant.Plugin); }); }); });
describe('request Object', () => { it('request is a Function', (done) => { assert.isFunction(request, 'request is a Function'); done(); }); });
describe('sfdx', function() { it('should have object \'org\'', function(){ assert.isObject(sfdx.org); }) describe('org', function(){ it('should have function \'list\'', function() { assert.isFunction(sfdx.org.list); }); it('should have function \'open\'', function() { assert.isFunction(sfdx.org.open); }); }) });
it( 'should create a Matrix having getters', function test() { assert.isFunction( mat.get ); assert.isFunction( mat.iget ); assert.isFunction( mat.mget ); assert.isFunction( mat.sget ); });
describe('Has Spiderable Object', () => { it('Spiderable is Constructor', () => { assert.isFunction(Spiderable, 'Spiderable is Constructor'); }); });
it( 'should create a Matrix having setters', function test() { assert.isFunction( mat.set ); assert.isFunction( mat.iset ); assert.isFunction( mat.mset ); assert.isFunction( mat.sset ); });
it( 'should create a Matrix having getters', function test() { assert.isFunction( mat.get ); assert.isFunction( mat.iget ); assert.isFunction( mat.mget ); assert.isFunction( mat.sget ); });
describe('Has JoSk Object', function () { it('JoSk is Constructor', function () { assert.isFunction(JoSk, 'JoSk is Constructor'); }); });