Skip to content

Commit dabe3e2

Browse files
author
Arthur Cinader
committed
and here's what it looks like with a 1 line max
1 parent 134a750 commit dabe3e2

36 files changed

+1
-54
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"no-trailing-spaces": 2,
2020
"eol-last": 2,
2121
"space-in-parens": ["error", "never"],
22-
"no-multiple-empty-lines": 1
22+
"no-multiple-empty-lines": ["warn", { "max": 1 }]
2323
}
2424
}

spec/CacheController.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ describe('CacheController', function() {
1616
spyOn(FakeCacheAdapter, 'get').and.callThrough();
1717
});
1818

19-
2019
it('should expose role and user caches', (done) => {
2120
var cache = new CacheController(FakeCacheAdapter, FakeAppID);
2221

@@ -28,7 +27,6 @@ describe('CacheController', function() {
2827
done();
2928
});
3029

31-
3230
['role', 'user'].forEach((cacheName) => {
3331
it('should prefix ' + cacheName + ' cache', () => {
3432
var cache = new CacheController(FakeCacheAdapter, FakeAppID)[cacheName];

spec/Client.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ describe('Client', function() {
7676
expect(client.subscriptionInfos.size).toBe(0);
7777
});
7878

79-
8079
it('can generate ParseObject JSON with null selected field', function() {
8180
var parseObjectJSON = {
8281
key : 'value',

spec/FilesController.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ var GridStoreAdapter = require("../src/Adapters/Files/GridStoreAdapter").GridSto
22
var Config = require("../src/Config");
33
var FilesController = require('../src/Controllers/FilesController').default;
44

5-
65
// Small additional tests to improve overall coverage
76
describe("FilesController",() =>{
87
it("should properly expand objects", (done) => {

spec/GridStoreAdapter.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ var GridStoreAdapter = require("../src/Adapters/Files/GridStoreAdapter").GridSto
55
var Config = require("../src/Config");
66
var FilesController = require('../src/Controllers/FilesController').default;
77

8-
98
// Small additional tests to improve overall coverage
109
describe_only_db('mongo')("GridStoreAdapter",() =>{
1110
it("should properly instanciate the GridStore when deleting a file", (done) => {
@@ -31,7 +30,6 @@ describe_only_db('mongo')("GridStoreAdapter",() =>{
3130
return originalUnlink.call(this);
3231
};
3332

34-
3533
filesController.createFile(config, 'myFilename.txt', 'my file content', 'text/plain')
3634
.then(myFile => {
3735

spec/HTTPRequest.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ app.get('/qs', function(req, res){
3535

3636
app.listen(13371);
3737

38-
3938
describe("httpRequest", () => {
4039
it("should do /hello", (done) => {
4140
httpRequest({

spec/InMemoryCache.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const InMemoryCache = require('../src/Adapters/Cache/InMemoryCache').default;
22

3-
43
describe('InMemoryCache', function() {
54
var BASE_TTL = {
65
ttl: 10
@@ -13,7 +12,6 @@ describe('InMemoryCache', function() {
1312

1413
var VALUE = 'world';
1514

16-
1715
function wait(sleep) {
1816
return new Promise(function(resolve) {
1917
setTimeout(resolve, sleep);

spec/Middlewares.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ describe('middlewares', () => {
6565
expect(fakeRes.status).toHaveBeenCalledWith(403);
6666
});
6767

68-
6968
it('should succeed when any one of the configured keys supplied', (done) => {
7069
AppCache.put(fakeReq.body._ApplicationId, {
7170
clientKey: 'clientKey',

spec/MongoStorageAdapter.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ describe_only_db('mongo')('MongoStorageAdapter', () => {
199199
date: { type: 'Date' },
200200
} };
201201

202-
203202
adapter.createObject('MyClass', schema, {})
204203
.then(() => adapter._rawFind('MyClass', {}))
205204
.then(results => {

spec/OAuth.spec.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ describe('OAuth', function() {
7474
done();
7575
});
7676

77-
7877
function validateCannotAuthenticateError(data, done) {
7978
jequal(typeof data, "object");
8079
jequal(typeof data.errors, "object");
@@ -325,5 +324,4 @@ describe('OAuth', function() {
325324
});
326325
});
327326

328-
329327
})

0 commit comments

Comments
 (0)