UNPKG

invoice-fs

Version:

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

12 lines (8 loc) 310 B
exports.testNewInvoiceWithCustomer = function(test) { var Invoice = require('../lib/invoice'), invoice = new Invoice(); invoice.new("test"); test.ok(invoice !== undefined, 'invoice was not created'); test.ok(invoice.data.items.length === 0, 'invoice has items'); test.done(); };