From 10500c2fba15e8d426273531c16842d882257d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 9 Feb 2015 18:53:32 +0100 Subject: [PATCH] Fix wrong format --- lib/screenshotHandler.js | 2 +- test/api/screenshotHandlerTest.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/screenshotHandler.js b/lib/screenshotHandler.js index 5651a12..5b82cd3 100644 --- a/lib/screenshotHandler.js +++ b/lib/screenshotHandler.js @@ -11,7 +11,7 @@ var screenshotHandler = function() { this.getScreenshotTempFile = function() { var screenshotTmpFolder = new tmp.Dir(); - var tmpFilePath = path.join(screenshotTmpFolder.path, 'screenshot.jpg'); + var tmpFilePath = path.join(screenshotTmpFolder.path, 'screenshot.png'); var that = this; return { diff --git a/test/api/screenshotHandlerTest.js b/test/api/screenshotHandlerTest.js index c19d0e0..675e3b7 100644 --- a/test/api/screenshotHandlerTest.js +++ b/test/api/screenshotHandlerTest.js @@ -85,7 +85,7 @@ describe('screenshotHandler', function() { it('should respond a temporary file', function() { var file = screenshot.getTmpFilePath(); - file.should.have.string('/screenshot.jpg'); + file.should.have.string('/screenshot.png'); }); @@ -106,7 +106,7 @@ describe('screenshotHandler', function() { it('should delete the temp folder with the screenshot inside', function(done) { screenshot = ScreenshotHandler.getScreenshotTempFile(); var tmpFolderPath = screenshot.getTmpFolder().path; - var tmpImagePath = path.join(tmpFolderPath, 'screenshot.jpg'); + var tmpImagePath = path.join(tmpFolderPath, 'screenshot.png'); // Copy image var testImage = fs.readFileSync(imagePath);