<commit_before>/*globals require, test: true */

// This is purely a stub file so we can test integration tests
// across node and the browser, the canonical integration tests
// are still held in /tests/ and ran as the documentation instructs

'use strict';

var db1Name = 'testdb';

var PouchDB = require('../../');
var testUtils = require('../test.utils.js');
var test = require('wrapping-tape')(testUtils.setupDb(db1Name));

test('Post a document', function(t) {
  t.plan(1);
  var db = new PouchDB(db1Name);
  db.post({a: 'doc'}, function(err, res) {
    t.notOk(err, 'No error posting docs');<commit_msg>(#913) - Add ability to specify remote vs local database in test args<commit_after>/*globals require, test: true */

// This is purely a stub file so we can test integration tests
// across node and the browser, the canonical integration tests
// are still held in /tests/ and ran as the documentation instructs

'use strict';

var PouchDB = require('../../');
var utils = require('../test.utils.js');
var opts = require('browserify-getopts');

var db1 = opts.db1 || 'testdb';
var test = require('wrapping-tape')(utils.setupDb(db1));

test('Post a document', function(t) {
  t.plan(1);
  var db = new PouchDB(db1);
  db.post({a: 'doc'}, function(err, res) {
    t.notOk(err, 'No error posting docs');
{'fraction_non_alphanumeric': 0.15419847328244274, 'fraction_numerical': 0.00916030534351145, 'mean_word_length': 4.042307692307692, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2467732', 'n_tokens_mistral': 417, 'n_tokens_neox': 416, 'n_words': 150}