Skip to content

Commit 06ad31c

Browse files
author
Simon Ho
committed
Clean up regexp operator tests
1 parent 48fe253 commit 06ad31c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/postgresql.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,17 @@ describe('postgresql connector', function () {
313313

314314
it('should print a warning when the global flag is set',
315315
function(done) {
316-
Post.find({where: {content: {regexp: new RegExp(/^a/g)}}}, function(err, posts) {
316+
Post.find({where: {content: {regexp: new RegExp(/^a/g)}}},
317+
function(err, posts) {
317318
console.warn.calledOnce.should.be.ok;
318319
done();
319320
});
320321
});
321322

322323
it('should print a warning when the multiline flag is set',
323324
function(done) {
324-
Post.find({where: {content: {regexp: new RegExp(/^a/m)}}}, function(err, posts) {
325+
Post.find({where: {content: {regexp: new RegExp(/^a/m)}}},
326+
function(err, posts) {
325327
console.warn.calledOnce.should.be.ok;
326328
done();
327329
});

0 commit comments

Comments
 (0)