Skip to content

Commit e94e2f3

Browse files
[whitespace, license]
1 parent 65d07e4 commit e94e2f3

File tree

6 files changed

+11
-37
lines changed

6 files changed

+11
-37
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
node_modules/
1+
node_modules

LICENSE

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
Copyright (c) 2011-2012, Edward Hotchkiss.
1+
Copyright (c) 2011-2014, Edward Hotchkiss.
32

43
Permission is hereby granted, free of charge, to any person obtaining
54
a copy of this software and associated documentation files (the
@@ -18,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1817
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
1918
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2019
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ MyModel.paginate({}, 2, 10, function(error, pageCount, paginatedResults) {
2929
}
3030
});
3131

32-
/* EOF */
33-
3432
```
3533

3634
## Run Tests

examples/basic/basic.js

-20
This file was deleted.

lib/mongoose-paginate.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/**
23
* @list dependencies
34
**/
@@ -45,5 +46,3 @@ mongoose.Model.paginate = function(q, pageNumber, resultsPerPage, callback, opti
4546
};
4647
});
4748
};
48-
49-
/* EOF */

test/index.test.js

+7-9
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function setup(callback){
4343
console.error(error);
4444
} else {
4545
complete++;
46-
if (complete === 100){
46+
if (complete === 100) {
4747
callback(null, 100);
4848
}
4949
}
@@ -86,7 +86,7 @@ vows.describe('pagination module basic test').addBatch({
8686
topic:function(){
8787
return paginate;
8888
},
89-
'there should be no errors and paginate should be an object':function(topic){
89+
'there should be no errors and paginate should be an object':function(topic) {
9090
assert.equal(typeof(topic), 'object');
9191
}
9292
}
@@ -95,7 +95,7 @@ vows.describe('pagination module basic test').addBatch({
9595
topic:function(){
9696
setup(this.callback);
9797
},
98-
'there should be no errors and resultCount should be 100':function(error, resultCount){
98+
'there should be no errors and resultCount should be 100':function(error, resultCount) {
9999
assert.equal(error, null);
100100
assert.equal(resultCount, 100);
101101
}
@@ -108,13 +108,13 @@ vows.describe('pagination module basic test').addBatch({
108108
'there should be no errors':function(error, pageCount, results){
109109
assert.equal(error, null);
110110
},
111-
'results.length should be 10, and the first result should contain the correct # (11)':function(error, pageCount, results){
111+
'results.length should be 10, and the first result should contain the correct # (11)':function(error, pageCount, results) {
112112
assert.equal(results.length, 10);
113113
},
114-
'the first result should contain the correct # (11)':function(error, pageCount, results){
114+
'the first result should contain the correct # (11)':function(error, pageCount, results) {
115115
assert.equal(results[0].title, 'Item #11');
116116
},
117-
'the column entry should be undefined':function(error, pageCount, results){
117+
'the column entry should be undefined':function(error, pageCount, results) {
118118
assert.equal(typeof(results[0].entry), 'undefined');
119119
}
120120
}
@@ -123,11 +123,9 @@ vows.describe('pagination module basic test').addBatch({
123123
topic:function(){
124124
teardown(this.callback);
125125
},
126-
'there should be no errors and resultCount should be a number':function(error, resultCount){
126+
'there should be no errors and resultCount should be a number':function(error, resultCount) {
127127
assert.equal(error, null);
128128
assert.equal(resultCount, 100);
129129
}
130130
}
131131
}).export(module);
132-
133-
/* EOF */

0 commit comments

Comments
 (0)