Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
chore(tests) add bootsrap for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
larube committed Feb 2, 2017
1 parent 07523cf commit 38d6014
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 23 deletions.
8 changes: 8 additions & 0 deletions test/bootstrap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// chai
chai = require('chai');
expect = chai.expect;
chai.config.includeStack = true;

// sinon
sinon = require('sinon');
chai.use(require('sinon-chai'));
1 change: 0 additions & 1 deletion test/client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* globals describe, it, beforeEach */

const expect = require('chai').expect;
const nock = require('nock');
const Client = require('../lib/client');

Expand Down
3 changes: 0 additions & 3 deletions test/documents.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* globals describe, it, beforeEach */

const chai = require('chai').use(require('sinon-chai'));
const expect = chai.expect;
const sinon = require('sinon');
const oss = require('../');

describe('Documents', () => {
Expand Down
3 changes: 0 additions & 3 deletions test/fields.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* globals describe, it, beforeEach */

const chai = require('chai').use(require('sinon-chai'));
const expect = chai.expect;
const sinon = require('sinon');
const oss = require('../');

describe('Fields', () => {
Expand Down
3 changes: 0 additions & 3 deletions test/indexes.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* globals describe, it, beforeEach */

const chai = require('chai').use(require('sinon-chai'));
const expect = chai.expect;
const sinon = require('sinon');
const oss = require('../');

describe('Indexes', () => {
Expand Down
3 changes: 0 additions & 3 deletions test/more-like-this.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
/* globals describe, it, beforeEach */

const oss = require('../');
const chai = require('chai').use(require('sinon-chai'));
const sinon = require('sinon');
const expect = chai.expect;

describe('More like this', () => {

Expand Down
3 changes: 0 additions & 3 deletions test/replication.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* globals describe, it, beforeEach */

const chai = require('chai').use(require('sinon-chai'));
const expect = chai.expect;
const sinon = require('sinon');
const oss = require('../');

describe('Replication', () => {
Expand Down
3 changes: 0 additions & 3 deletions test/search.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* globals describe, it, beforeEach */

const chai = require('chai').use(require('sinon-chai'));
const expect = chai.expect;
const sinon = require('sinon');
const oss = require('../');

describe('Search', () => {
Expand Down
3 changes: 0 additions & 3 deletions test/templates.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
/* globals describe, it, beforeEach */

const chai = require('chai').use(require('sinon-chai'));
const expect = chai.expect;
const sinon = require('sinon');
const oss = require('../');

describe('Templates', () => {
Expand Down
1 change: 0 additions & 1 deletion test/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* globals describe, it */

const expect = require('chai').expect;
const util = require('../lib/util');

describe('Util', () => {
Expand Down

0 comments on commit 38d6014

Please sign in to comment.