Skip to content

Commit 1e63768

Browse files
committed
style(test): clean up formatting of missed test files
1 parent 6df9022 commit 1e63768

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

test/node/bson_test.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,7 @@ describe('BSON', function() {
800800
/**
801801
* @ignore
802802
*/
803-
it('Should Correctly Serialize and Deserialize Buffer with promoteBuffers option', function(
804-
done
805-
) {
803+
it('Should Correctly Serialize and Deserialize Buffer with promoteBuffers option', function(done) {
806804
var doc = { doc: new Buffer('hello world') };
807805
var serialized_data = createBSON().serialize(doc);
808806

@@ -1690,9 +1688,7 @@ describe('BSON', function() {
16901688
/**
16911689
* @ignore
16921690
*/
1693-
it('Should Correctly handle Forced Doubles to ensure we allocate enough space for cap collections', function(
1694-
done
1695-
) {
1691+
it('Should Correctly handle Forced Doubles to ensure we allocate enough space for cap collections', function(done) {
16961692
if (Double != null) {
16971693
var doubleValue = new Double(100);
16981694
var doc = { value: doubleValue };
@@ -1861,9 +1857,7 @@ describe('BSON', function() {
18611857
* @_function calculateObjectSize
18621858
* @ignore
18631859
*/
1864-
it('Should correctly calculate the size of a given javascript object using instance method', function(
1865-
done
1866-
) {
1860+
it('Should correctly calculate the size of a given javascript object using instance method', function(done) {
18671861
// Create a simple object
18681862
var doc = { a: 1, func: function() {} };
18691863
// Create a BSON parser instance
@@ -1933,9 +1927,7 @@ describe('BSON', function() {
19331927
* @_function serializeWithBufferAndIndex
19341928
* @ignore
19351929
*/
1936-
it('Should correctly serializeWithBufferAndIndex a given javascript object using a BSON instance', function(
1937-
done
1938-
) {
1930+
it('Should correctly serializeWithBufferAndIndex a given javascript object using a BSON instance', function(done) {
19391931
// Create a simple object
19401932
var doc = { a: 1, func: function() {} };
19411933
// Create a BSON parser instance

test/node/serialize_with_buffer_tests.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ describe('serializeWithBuffer', function() {
2929
done();
3030
});
3131

32-
it('correctly serialize 3 different docs into buffer using serializeWithBufferAndIndex', function(
33-
done
34-
) {
32+
it('correctly serialize 3 different docs into buffer using serializeWithBufferAndIndex', function(done) {
3533
const MAXSIZE = 1024 * 1024 * 17;
3634
var bson = createBSON();
3735
let bf = new Buffer(MAXSIZE);

test/node/test_full_bson.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -603,9 +603,7 @@ describe('Full BSON', function() {
603603
/**
604604
* @ignore
605605
*/
606-
it('Should Correctly Serialize and Deserialize Buffer with promoteBuffers option', function(
607-
done
608-
) {
606+
it('Should Correctly Serialize and Deserialize Buffer with promoteBuffers option', function(done) {
609607
var doc = { doc: new Buffer('123451234512345') };
610608
var serialized_data = bson.serialize(doc);
611609

0 commit comments

Comments
 (0)