diff --git a/packages/snjs/e2e-server.js b/packages/snjs/e2e-server.js index df44ee155..120ca2239 100755 --- a/packages/snjs/e2e-server.js +++ b/packages/snjs/e2e-server.js @@ -3,22 +3,10 @@ /* Used for running mocha tests */ const connect = require('connect') const serveStatic = require('serve-static') -const fs = require('fs') const isDev = process.argv[2] === '--dev' const port = isDev ? 9002 : 9001 -const snCryptoDistFilePath = `${__dirname}/../sncrypto-web/dist/sncrypto-web.js` -if (!fs.existsSync(snCryptoDistFilePath)) { - console.error( - `Could not find sncrypto dist file under: ${snCryptoDistFilePath}. Please consider building the project first`, - ) - - process.exit(1) -} - -fs.copyFileSync(snCryptoDistFilePath, `${__dirname}/mocha/vendor/sncrypto-web.js`) - connect() .use(serveStatic(__dirname)) .listen(port, () => { diff --git a/packages/snjs/mocha/test.html b/packages/snjs/mocha/test.html index 461c1bdf2..b0a53963e 100644 --- a/packages/snjs/mocha/test.html +++ b/packages/snjs/mocha/test.html @@ -10,7 +10,7 @@ - +