Permalink
Browse files

whitespace

  • Loading branch information...
1 parent 4fd4746 commit 42fc459864593cc5296c2d56b06ef4c65fbe408e @konklone konklone committed Mar 25, 2013
Showing with 19 additions and 4 deletions.
  1. +19 −4 test/general.js
View
@@ -12,7 +12,7 @@ var util = require('util');
// var text, results;
// var types = _.keys(Citation.types);
-
+
// // base case (all) works for nothing, and for empty arrays]
// [null, {types: null}, {types: []}].forEach(function(options) {
// text = "" +
@@ -35,7 +35,10 @@ exports.testTypes = function(test) {
var text, results;
// limit results by a string or an array, ignoring invalid results
- [{types: "law"}, {types: ["law"]}].forEach(function(options) {
+ [
+ {types: "law"},
+ {types: ["law"]}
+ ].forEach(function(options) {
text = "both 5 U.S.C. 552 and Public Law 112-34 are";
results = Citation.find(text, options);
@@ -44,12 +47,24 @@ exports.testTypes = function(test) {
});
// if the array is all invalid results, nothing is found
- [{types: "nonsense"}, {types: ["nonsense"]}, {types: ["nonsense", "poppycock"]}].forEach(function(options) {
+ [
+ {types: "nonsense"},
+ {types: ["nonsense"]},
+ {types: ["nonsense", "poppycock"]}
+ ].forEach(function(options) {
text = "both 5 U.S.C. 552 and Public Law 112-34 are";
results = Citation.find(text, options);
test.equal(0, results.length);
});
test.done();
-};
+};
+
+exports.testLoading = function(test) {
+ test.expect();
+
+
+
+ test.done();
+}

0 comments on commit 42fc459

Please sign in to comment.