testable-utils
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -14,3 +14,3 @@ var _ = require('lodash'); | ||
var DataTable = function(file) { | ||
this.results = Baby.parseFiles(file, { header: true }); | ||
this.results = Baby.parseFiles(file, { header: true, skipEmptyLines: true }); | ||
if (this.results.errors && this.results.errors.length > 0) { | ||
@@ -23,2 +23,3 @@ var msg = "Errors occurred parsing " + file + ": " + util.inspect(this.results.errors); | ||
} | ||
this.headers = this.results.meta.fields; | ||
this.data = this.results.data || []; | ||
@@ -25,0 +26,0 @@ this.index = 0; |
@@ -16,3 +16,3 @@ var _ = require('lodash'); | ||
this.results = Baby.parseFiles(dataStore.name, { header: true }); | ||
this.results = Baby.parseFiles(dataStore.name, { header: true, skipEmptyLines: true }); | ||
if (this.results.errors && this.results.errors.length > 0) { | ||
@@ -19,0 +19,0 @@ var msg = "Errors occurred parsing " + dataStore.name + ": " + util.inspect(this.results.errors); |
{ | ||
"name": "testable-utils", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Utilities for Testable scripts", | ||
@@ -5,0 +5,0 @@ "author": "Avi Stramer", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24250
441