Closed piercus closed 2 years ago
Hello @piercus To implement the kvs-parser do we need to use the mock data or actual AWS getMedia() api?
@dharmik-dalwadi-seaflux it depends what "to use" means
You will implement aws-sdk usage into lib/kvs-parser.js
as default usage
But when testing your implementation, you will always call ava test/kvs-parser.js
and then test it passing through the mock
this.kinesisvideo
and this.kinesisvideomedia
by default using the aws sdk (see below)ava
and the mock reasons are :
you should do the following :
const AWS = require('aws-sdk')
// inside the constructor
this.kinesisvideo = awsInstances.kinesisvideo || new AWS.KinesisVideo();
this.kinesisvideomedia = awsInstances.kinesisvideomedia || new AWS.KinesisVideoMedia();
Actual
unit test implemented, but function is still empty
Expected
Implement the
lib/kvs-parser.js
file