不要怂,就是干,撸起袖子干!

Commit 0d383338 by Ruben Bridgewater

Remove done() from sync tests

1 parent 9e081439
...@@ -23,9 +23,8 @@ if (dialect.match(/^postgres/)) { ...@@ -23,9 +23,8 @@ if (dialect.match(/^postgres/)) {
expect(hstore.stringify({ foo: null })).to.equal('"foo"=>NULL'); expect(hstore.stringify({ foo: null })).to.equal('"foo"=>NULL');
}); });
it('should handle empty string correctly', function(done) { it('should handle empty string correctly', function() {
expect(hstore.stringify({foo: ''})).to.equal('"foo"=>\"\"'); expect(hstore.stringify({foo: ''})).to.equal('"foo"=>\"\"');
done();
}); });
it('should handle a string with backslashes correctly', function() { it('should handle a string with backslashes correctly', function() {
......
...@@ -26,11 +26,10 @@ if (dialect.match(/^postgres/)) { ...@@ -26,11 +26,10 @@ if (dialect.match(/^postgres/)) {
expect(range.stringify([1, 2, 3])).to.equal(''); expect(range.stringify([1, 2, 3])).to.equal('');
}); });
it('should return empty string when non-array parameter is passed', function (done) { it('should return empty string when non-array parameter is passed', function () {
expect(range.stringify({})).to.equal(''); expect(range.stringify({})).to.equal('');
expect(range.stringify('test')).to.equal(''); expect(range.stringify('test')).to.equal('');
expect(range.stringify(undefined)).to.equal(''); expect(range.stringify(undefined)).to.equal('');
done();
}); });
it('should handle array of objects with `inclusive` and `value` properties', function () { it('should handle array of objects with `inclusive` and `value` properties', function () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!