Skip to content
Browse files

Code cleanup

  • Loading branch information...
1 parent 1607c49 commit f665e808896a0a44c66feb2d7ad77438f1994e38 @marksweiss committed Sep 11, 2011
Showing with 3 additions and 13 deletions.
  1. +0 −10 flatmatcher.js
  2. +3 −3 test/flatmatcher.test.js
View
10 flatmatcher.js
@@ -1,13 +1,3 @@
-// TODO
-// - Change Makefile to run tests from node_modules/mongoose/support/expresso, and cli-tables the same way, produce data in mongo, send out success output to console
-// -- NOTE that tests are just an export of functions in an anonymous module closure
-// -- but they don't actually run anything. SEE HOW MONGOOSE RUNS THE TESTS. There must be a test runner
-// - fully npm-ize, anything more than package.json?
-// - upload and create npm page
-// - add to github
-// - email aheckman
-
-
var FlatMatcher = (function () {
/**
* Returns the correct MongoDB query syntax JSON for flat JSON object of properties/values to be used
View
6 test/flatmatcher.test.js
@@ -58,9 +58,9 @@ module.exports = {
var collection = 'flatmatcher_1'
, db = start()
, BlogPostModel = db.model('BlogPost', collection);
-
- // Matches attributes with simple types at root level and nested attributes
- var testTitle = 'Dot Notation Test';
+
+ // Matches attributes with simple types at root level and nested attributes
+ var testTitle = 'Dot Notation Test';
var matchArgs = {title : testTitle, published : true, visitors : 5};
var expectedMatchObj = {title: testTitle, published: true, 'meta.visitors': 5};
// Now actually insert some data and retrieve it with find() using the matcher

0 comments on commit f665e80

Please sign in to comment.
Something went wrong with that request. Please try again.