Skip to content

Commit

Permalink
adds test for search by dates that are actually strings
Browse files Browse the repository at this point in the history
  • Loading branch information
particlebanana committed Feb 4, 2016
1 parent 10b43f7 commit fd1ce7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions interfaces/queryable/modifiers/greaterThan.modifier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,16 @@ describe('Queryable Interface', function() {
});
});

it('should return records with symbolic usage >= usage when searching dates as strings', function(done) {
Queryable.User.find({ type: testName, dob: { '>=': 'Sat Nov 09 2013 00:00:00 GMT-0600 (CST)' }}).sort('first_name').exec(function(err, users) {
assert(!err);
assert(Array.isArray(users));
assert.strictEqual(users.length, 2);
assert.equal(users[0].first_name, 'greaterThanOrEqual_dates_user8');
done();
});
});

});

describe('strings', function() {
Expand Down

0 comments on commit fd1ce7a

Please sign in to comment.