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

fh-forms

Package Overview
Dependencies
Maintainers
15
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-forms

Cloud Forms API for form submission

  • 1.16.8-alpha.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by250%
Maintainers
15
Weekly downloads
 
Created
Source

fh-forms

Build Status Coverage Status

FeedHenry Cloud API for form submissions.

Installation

Install the projects dependencies:

npm install

Test execution

There are two types of tests: unit tests that don't have any additional dependencies and acceptance tests that require configured MongoDB. Turbo is used as a test runner. It stops test execution if a test fails.

We use Grunt to run the tests which needs to be installed:

npm install grunt -g

All the unit test with jshint:

grunt 

All unit tests:

grunt fh:unit

All acceptance tests:

grunt fh:accept

Requirements to run acceptance tests

We need to install and configure MongoDb. Installation instructions can be found in MongoDb Docs. On Linux systems it is desirable to install mongodb-org meta package.

Make sure to have mongod up and running: sudo /etc/init.d/mongod start.

MongoDb can be controlled from mongo shell by typing mongo.

The last thing that we have to do is to add admin user via mongo shell:

use admin
db.createUser({
        user: "admin",
        pwd: "admin",
        roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
})

Code coverage

Code coverage reports are generated using istanbul and stored in coverage, cov-unit and cov-accept folders.

Generate all code coverage:

grunt fh:coverage

Use 'fh:coverage:unit_cover' or 'fh_coverage:accept_cover' instead of 'coverage' to generate individual reports.

Keywords

FAQs

Package last updated on 21 May 2018

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