Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filefog-provider-tests

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filefog-provider-tests

integration tests for filefog providers

  • 0.0.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Filefog Provider Tests

A set of integration tests that can be included in you FileFog Provider module and used to test your provider against the current FileFog API.

FileFog Interface Specification

  • Reference
  • Philosophy & Motivations

Usage

Write a test runner

i.e. runner.js

/**
 * Test runner dependencies
 */
var mocha = require('mocha');
var TestRunner = require('filefog-provider-tests');


/**
 * Integration Test Runner
 *
 * Uses the `filefog-provider-tests` module to
 * run mocha tests against the specified interfaces
 * of the currently-implemented Filefog API.
 */
new TestRunner({

	// Load the provider module.
	definition: require('./relative/path/to/your/provider'),

	// Each provider will have different requirements, OAuth providers will require client_key's and client_secret
	s, while the local provider only requires a base_directory. Check the [Reference](https://github.com/filefog/filefog-docs/blob/master/provider-specification.md) doc
	for additional interaces, or create your own.
	config: {
        client_key : '777041726477-a5o1tp6f3i9m1me3tj5vhpnrn1jge43c.apps.googleusercontent.com',
        client_secret : 'mWURYHmMKZxr6aeR7DTjRu-q',
        client_scope : "https://www.googleapis.com/auth/drive",
        redirect_url : 'http://localhost:3000/service/callback/google'
     },

	// The set of adapter interfaces to test against.
	interfaces: ["oauth", "events", "webhooks"]
});
Run the tests
$ node runner.js

MIT License

See LICENSE.md.

Keywords

FAQs

Package last updated on 06 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc