Comparing version 1.1.6 to 1.1.7
{ | ||
"name": "extractd", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Extract previews from DSLR and mirrorless cameras' RAW files", | ||
@@ -5,0 +5,0 @@ "main": "extractd.js", |
@@ -66,2 +66,33 @@ const fs = require('fs'); | ||
context('with existing file but unable to create destination directory', () => { | ||
it('should return file not found error', async () => { | ||
const file = 'nikon_d850_01'; | ||
const destination = '/root/my/new/directory/'; | ||
const source = `${samples}/${file}.nef`; | ||
const done = await extractd.generate(source, { | ||
destination | ||
}); | ||
expect(done).to.be.an('object'); | ||
expect(done).to.deep.equal({ | ||
error: `Error creating ${destination}${file}.jpg`, | ||
source: `${source}` | ||
}); | ||
}); | ||
it('should indicate no persistent status', () => { | ||
const status = extractd.status(); | ||
expect(status.persistent).to.be.false; | ||
}); | ||
}); | ||
context('with existing file and set destination', () => { | ||
@@ -68,0 +99,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32217
552