Fix for #1334: using relative cloud code files broken
* Adding tests for absolute and relative cloud code file loading. * Fixes #1334 by resolving relative cloud code file paths to the process' working directory.
This commit is contained in:
committed by
Florent Vilmart
parent
f99b5588ab
commit
acc23d0828
@@ -10,7 +10,7 @@ var ParseServer = require('../src/index').ParseServer;
|
||||
var path = require('path');
|
||||
|
||||
var databaseURI = process.env.DATABASE_URI;
|
||||
var cloudMain = process.env.CLOUD_CODE_MAIN || '../spec/cloud/main.js';
|
||||
var cloudMain = process.env.CLOUD_CODE_MAIN || './spec/cloud/main.js';
|
||||
var port = 8378;
|
||||
|
||||
// Default server configuration for tests.
|
||||
|
||||
Reference in New Issue
Block a user