Skip to content

Commit e030dde

Browse files
committed
add test folder
1 parent a5e0926 commit e030dde

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ node_modules
33
.idea
44
.DS_Store
55
npm-debug*
6-
test

test/client.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
var should = require('should');
2+
3+
describe('client module', function() {
4+
5+
it('should expose some of the main object types', function() {
6+
var Pipedrive = require('./..'),
7+
pipedrive = new Pipedrive.Client('apitoken');
8+
9+
should(pipedrive.Deals).be.an.Object();
10+
should(pipedrive.Persons).be.an.Object();
11+
should(pipedrive.Organizations).be.an.Object();
12+
should(pipedrive.Activities).be.an.Object();
13+
should(pipedrive.Products).be.an.Object();
14+
should(pipedrive.Files).be.an.Object();
15+
should(pipedrive.Users).be.an.Object();
16+
});
17+
18+
});

test/index.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
var should = require('should');
2+
3+
describe('main module', function() {
4+
5+
it('should be requireable without errors', function() {
6+
var Pipedrive = require('./..');
7+
});
8+
9+
it('should expose top-level functionality', function() {
10+
var Pipedrive = require('./..');
11+
12+
should(Pipedrive.Client).be.a.Function();
13+
should(Pipedrive.authenticate).be.a.Function();
14+
});
15+
16+
});

0 commit comments

Comments
 (0)