Browse Source

Fix screenshots and continue implementing phantomas v2

Gaël Métais 4 years ago
parent
commit
2bf3d5372b

+ 1 - 1
lib/server/controllers/apiController.js

@@ -114,7 +114,7 @@ var ApiController = function(app) {
                         if (screenshotBuffer) {
                             debug('Image optimized');
                             data.screenshotBuffer = screenshotBuffer;
-                            data.screenshotUrl = '/api/results/' + data.runId + '/screenshot.jpg'
+                            data.screenshotUrl = '/api/results/' + data.runId + '/screenshot.jpg';
                         }
                     })
 

+ 1 - 1
lib/server/datastores/resultsDatastore.js

@@ -17,7 +17,7 @@ function ResultsDatastore() {
     this.saveResult = function(testResults) {
         
         var screenshotFilePath = path.join(resultsDir, testResults.runId, resultScreenshotName);
-        var screenshotAPIPath = '/'
+        var screenshotAPIPath = '/';
 
         return createResultFolder(testResults.runId)