Socket
Book a DemoInstallSign in
Socket

couchdb-fixture

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-fixture

Initialize a couchdb database with fixtures meant for use with mocha. The couchdb server that it initializes will not interfere with any couchdb server that is currently running on the system and the server's databases will be immediately removed after ea

0.1.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

couchdb-fixture

Initialize a couchdb database with fixtures meant for use with mocha. The couchdb server that it initializes will not interfere with any couchdb server that is currently running on the system and the server's databases will be immediately removed after each test.

Usage

var nanoInit = require('nano');
var couchdbFixture = require('couchdb-fixture');

describe('thisIsSomeTest', function() {
  couchdbFixture({
    'someTestDatabaseName': [
      {
        _id: "some_doc_id",
        value: "some_value"
      }
    ]
  }).beforeEach(function(fixtureContext, done) {
    nano = nanoInit(fixtureContext.couchdbUrl);

    done();
  });
});

FAQs

Package last updated on 22 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.