kap-plugin-mock-context [](https://travis-ci.org/SamVerschueren/kap-plugin-mock-context)

May 30, 2017 · View on GitHub

Kap plugin mock context

Install

$ npm install --save-dev kap-plugin-mock-context

Usage

const context = require('kap-plugin-mock-context');

const ctx = context({
	file: 'Kapture 2017-05-30 at 1.03.49.gif',
	config: {
		apiKey: 'a3b78f9ce6'
	}
});

API

context(options)

Returns a mock context object.

options

Type: object

file

Type: string

Path to the file that is being processed.

config

Type: object
Default: {}

Plugin configuration object.

License

MIT © Sam Verschueren