mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-16 07:46:31 +00:00
tests(image-stream): ensure imageStream.getFromFilePath() returns a path (#1280)
This would have prevented https://github.com/resin-io/etcher/pull/1278 from happening. Signed-off-by: Juan Cruz Viotti <jviotti@openmailbox.org>
This commit is contained in:
parent
3f7ec8a148
commit
55021376b5
@ -59,6 +59,8 @@ exports.extractFromFilePath = function(file, image) {
|
||||
const output = tmp.tmpNameSync();
|
||||
|
||||
return imageStream.getFromFilePath(file).then(function(results) {
|
||||
m.chai.expect(results.path).to.equal(file);
|
||||
|
||||
if (!_.some([
|
||||
results.size.original === fs.statSync(file).size,
|
||||
results.size.original === fs.statSync(image).size
|
||||
|
Loading…
x
Reference in New Issue
Block a user