Comparing version 0.5.0 to 0.5.1
{ | ||
"name": "bitcodin", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Bitcodin API wrapper", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/bitmovin/bitcodin-node", |
@@ -11,23 +11,26 @@ /** | ||
it('should create a thumbnail', function () { | ||
var thumbnailConfiguration = { | ||
"jobId": 254849, | ||
"height": 320, | ||
"position": 50, | ||
"async": true | ||
}; | ||
it('should create a thumbnail', function (done) { | ||
var jobPromise = bitcodin.job.list(0, 'finished'); | ||
var promise = bitcodin.thumbnail.create(thumbnailConfiguration); | ||
jobPromise.then(function (result) { | ||
var thumbnailConfiguration = { | ||
"jobId": result.jobs[0].jobId, | ||
"height": 320, | ||
"position": 50, | ||
"async": true | ||
}; | ||
promise.then(function (data) { | ||
thumbnails.push(data); | ||
}); | ||
var promise = bitcodin.thumbnail.create(thumbnailConfiguration); | ||
return promise.should.eventually.be.fulfilled; | ||
promise.then(function (data) { | ||
thumbnails.push(data); | ||
done(); | ||
}, done); | ||
}, done); | ||
}); | ||
it('should get a thumbnail for a given id', function () { | ||
return bitcodin.thumbnail.get('141b44e6-61c3-42d7-81d2-65b450c60862').should.eventually.be.fulfilled; | ||
return bitcodin.thumbnail.get(thumbnails[0].id).should.eventually.be.fulfilled; | ||
}); | ||
}); |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
69806
0
1738