UNPKG

invoice-fs

Version:

Nostalgic command-line invoicing application producing plain text invoices and JSON data structures. Uses the file system as a database

16 lines (13 loc) 524 B
exports.testIssuer = function(test) { var issuer = require('../lib/issuer'), issuerArray = []; for (key in issuer.data) { if (issuer.data.hasOwnProperty(key)) { issuerArray.push(key + '=' + issuer.data[key]); } } test.ok(issuerArray.length > 8, "Number of properties on issuer were incorrect"); test.ok(issuer.open !== undefined, "Issuer doesn't have an open method"); test.ok(issuer.save !== undefined, "Issuer doesn't have a save method"); test.done(); };