Skip to content

Commit 6a6598d

Browse files
author
Arthur Cinader
committed
Oh sure, now it works.
Revert "let's figure out what is going on with travis!" This reverts commit e528c1c.
1 parent e528c1c commit 6a6598d

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"dev": "npm run build && node bin/dev",
7070
"lint": "eslint --cache ./",
7171
"build": "babel src/ -d lib/",
72-
72+
"pretest": "npm run lint",
7373
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 $COVERAGE_OPTION jasmine",
7474
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 jasmine",
7575
"coverage": "cross-env COVERAGE_OPTION='./node_modules/.bin/istanbul cover' npm test",

spec/FilesController.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe("FilesController",() =>{
3838
done();
3939
});
4040

41-
fit('should create a server log on failure', done => {
41+
it('should create a server log on failure', done => {
4242
const logController = new LoggerController(new WinstonLoggerAdapter());
4343

4444
reconfigureServer({ filesAdapter: mockAdapter })

src/Controllers/FilesController.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import mime from 'mime';
88
const legacyFilesRegex = new RegExp("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}-.*");
99

1010
export class FilesController extends AdaptableController {
11+
1112
getFileData(config, filename) {
1213
return this.adapter.getFileData(filename);
1314
}

src/middlewares.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ export function handleParseErrors(err, req, res, next) {
269269
}
270270

271271
export function enforceMasterKeyAccess(req, res, next) {
272-
console.trace("hi mom!");
273272
if (!req.auth.isMaster) {
274273
res.status(403);
275274
res.end('{"error":"unauthorized: master key is required"}');
@@ -279,7 +278,6 @@ export function enforceMasterKeyAccess(req, res, next) {
279278
}
280279

281280
export function promiseEnforceMasterKeyAccess(request) {
282-
console.trace("hi mom!");
283281
if (!request.auth.isMaster) {
284282
const error = new Error();
285283
error.status = 403;

0 commit comments

Comments
 (0)