How to use a - 10 common examples

To help you get started, we’ve selected a few a examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alfateam / rdb / table / query / singleQuery / columnSql / joinLegToColumnSqlSpec / when_execute.js View on Github external
var when = require('a').when;
var c = {};

when('./execute',c)
	.it('returns shallowJoinSql concat joinedColumnSql').assertEqual(c.expected,c.returned);
github alfateam / rdb / table / query / singleQuery / joinSql / oneLegToJoinSqlSpec / req / when_execute.js View on Github external
var when = require('a').when;
var c = {};

when('./execute',c)
	.it('returns shallowJoinSql concat nextJoinSql').assertEqual(c.expected,c.returned);
github alfateam / rdb / table / tryGetFromDbById / extractStrategySpec / new / when_execute.js View on Github external
var when = require('a').when;
var c = {};

when('./execute',c)
	.it('should return strategy').assertEqual(c.strategy,c.returned);
github alfateam / rdb / table / query / singleQuery / joinSql / joinLegToShallowJoinSqlSpec / when_execute.js View on Github external
var when = require('a').when;
var c = {};

when('./execute',c)
	.it('returns expected').assertEqual(c.expected,c.returned);
github alfateam / rdb / table / query / singleQuery / joinSql / joinLegToJoinSqlSpec / when_execute.js View on Github external
var when = require('a').when;
var c = {};

when('./execute',c)
	.it('returns shallowJoinSql concat nextJoinSql').assertEqual(c.expected,c.returned);
github alfateam / rdb / mySql / wrapQuerySpec / wrap / whenRun.js View on Github external
var when = require('a').when;
var c = {};

when(c)
	.it('should log query').assertDoesNotThrow(c.log.verify)
	.it('should execute query').assertDoesNotThrow(c.runQuery.verify)
	.it('should return object').assertEqual(c.expected, c.returned)
github alfateam / rdb / table / column / notEqualSpec / req / null / when_notEqual.js View on Github external
var when = require('a').when;
var c = {}

when('./notEqual',c)
	.it('should return filter').assertEqual(c.expected,c.returned);
github alfateam / rdb / table / resultToRows / toDtoSpec / hasStrategy / whenToDto.js View on Github external
var when = require('a').when;
var c = {};

when(c)
    .it('should return dto').assertEqual(c.dto, c.returned)
    .it('should map foo').assertEqual(c.fooDto, c.dto.foo)
    .it('should map bar').assertEqual(c.barDto, c.dto.bar)
github alfateam / rdb / table / readStream / pg / query / newSingleQuerySpec / whenNew.js View on Github external
var when = require('a').when;
var c = {};

when(c)
    .it('should set parameters to filter.parameters').assertEqual(c.parameters, c.sut.parameters);
github alfateam / rdb / table / newRowCacheSpec / new / whenRemove.js View on Github external
var when = require('a').when;
var c = {};

when(c)
	.it('should remove from domainCache').assertDoesNotThrow(c.domainCache.tryRemove.verify)
	;

a

Mocking framework

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis

Popular a functions