UNPKG

drek

Version:

A static-code-analysis tool that can be used to perform security-focused code reviews. It enables an auditor to swiftly map the attack-surface of a large application, with an emphasis on identifying development anti-patterns and footguns.

12 lines (10 loc) 396 B
const decorators = require('../app/decorators'); const test = require('tape'); test('decorators: return proper object', function (t) { t.plan(5); t.equals(Object.keys(decorators).length, 4); t.equals(typeof decorators.csv, 'function'); t.equals(typeof decorators.html, 'function'); t.equals(typeof decorators.json, 'function'); t.equals(typeof decorators.xml, 'function'); });