small test tweaks so done() isn't called multiple times
This commit is contained in:
parent
45851d4fd9
commit
8d8be2341c
1 changed files with 5 additions and 5 deletions
10
test/one.js
10
test/one.js
|
|
@ -35,7 +35,7 @@ describe('NPR One', function() {
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
|
|
||||||
if(! res.access_token)
|
if(! res.access_token)
|
||||||
done('missing access token');
|
return done('missing access token');
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ describe('NPR One', function() {
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
|
|
||||||
if(! res.items.length)
|
if(! res.items.length)
|
||||||
done('missing channels');
|
return done('missing channels');
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ describe('NPR One', function() {
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
|
|
||||||
if(! res.items.length)
|
if(! res.items.length)
|
||||||
done('missing history');
|
return done('missing history');
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ describe('NPR One', function() {
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
|
|
||||||
if(! res.items.length)
|
if(! res.items.length)
|
||||||
done('missing recommendations');
|
return done('missing recommendations');
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
||||||
|
|
@ -99,7 +99,7 @@ describe('NPR One', function() {
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
|
|
||||||
if(! res.items.length)
|
if(! res.items.length)
|
||||||
done('missing search recommendations');
|
return done('missing search recommendations');
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue