Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fullcontact
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
prospector
fullcontact
Commits
8817aabe
Commit
8817aabe
authored
Jan 13, 2015
by
AdriVanHoudt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
&& not || derp // cleanup
parent
474f1ec9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
index.js
index.js
+1
-1
person.test.js
test/person.test.js
+1
-8
No files found.
index.js
View file @
8817aabe
...
...
@@ -95,7 +95,7 @@ FullContact.prototype.request = function req(packet, args) {
// it will have a "message" property when it's a failed request so we can
// leverage that to return a nice error.
//
if
(
body
.
status
!==
200
||
body
.
status
!==
202
)
{
if
(
body
.
status
!==
200
&&
body
.
status
!==
202
)
{
err
=
new
Error
(
body
.
message
);
err
.
status
=
body
.
status
;
...
...
test/person.test.js
View file @
8817aabe
...
...
@@ -32,14 +32,7 @@ describe('FullContact.Person', function () {
describe
(
'#email with webhook url/id'
,
function
()
{
it
(
'retrieves data by e-mail and sets up a webhook with the right url and id'
,
function
(
done
)
{
api
.
person
.
email
(
'arnout@observe.it'
,
null
,
'http://requestb.in/1bxgb751'
,
'webhookTest'
,
function
email
(
err
,
data
)
{
if
(
err
)
return
done
(
err
);
console
.
log
(
err
);
console
.
log
(
data
);
done
();
});
api
.
person
.
email
(
'arnout@observe.it'
,
null
,
'http://requestb.in/1bxgb751'
,
'webhookTest'
,
done
);
});
it
(
'provides the proper casing'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment