Fix wrong format

This commit is contained in:
Gaël Métais
2015-02-09 18:53:32 +01:00
parent c4011c0817
commit 10500c2fba
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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);