@@ -54,7 +54,7 @@ describe("commands/list", function() {
5454
5555
5656 command ( { } , result ) . then ( function ( ) {
57- requestStub . calledTwice . should . be . true ;
57+ requestStub . calledTwice . should . be . true ( ) ;
5858 requestStub . args [ 0 ] [ 0 ] . should . eql ( "/auth/login" ) ;
5959 requestStub . args [ 1 ] [ 0 ] . should . eql ( "/auth/token" ) ;
6060 requestStub . args [ 1 ] [ 1 ] . should . eql ( {
@@ -63,11 +63,11 @@ describe("commands/list", function() {
6363 } ) ;
6464
6565
66- config . tokens . calledTwice . should . be . true ;
66+ config . tokens . calledTwice . should . be . true ( ) ;
6767 should . not . exist ( config . tokens . args [ 0 ] [ 0 ] ) ;
6868 config . tokens . args [ 1 ] [ 0 ] . should . eql ( { access_token :"12345" } ) ;
6969
70- / L o g g e d i n / . test ( result . log . args [ 0 ] [ 0 ] ) . should . be . true ;
70+ / L o g g e d i n / . test ( result . log . args [ 0 ] [ 0 ] ) . should . be . true ( ) ;
7171
7272 done ( ) ;
7373 } ) . otherwise ( done ) ;
@@ -78,20 +78,20 @@ describe("commands/list", function() {
7878 requestStub . onCall ( 0 ) . returns ( when . resolve ( { type :"unknown" } ) ) ;
7979 requestStub . onCall ( 1 ) . returns ( when . resolve ( { access_token :"12345" } ) ) ;
8080 command ( { } , result ) . then ( function ( ) {
81- requestStub . calledOnce . should . be . true ;
81+ requestStub . calledOnce . should . be . true ( ) ;
8282 requestStub . args [ 0 ] [ 0 ] . should . eql ( "/auth/login" ) ;
83- / U n s u p p o r t e d l o g i n t y p e / . test ( result . warn . args [ 0 ] [ 0 ] ) . should . be . true ;
83+ / U n s u p p o r t e d l o g i n t y p e / . test ( result . warn . args [ 0 ] [ 0 ] ) . should . be . true ( ) ;
8484 done ( ) ;
8585 } ) . otherwise ( done ) ;
8686 } ) ;
8787 it ( 'handles no authentication' , function ( done ) {
8888 var requestStub = sinon . stub ( request , "request" ) ;
8989 requestStub . onCall ( 0 ) . returns ( when . resolve ( { } ) ) ;
9090 command ( { } , result ) . then ( function ( ) {
91- requestStub . calledOnce . should . be . true ;
91+ requestStub . calledOnce . should . be . true ( ) ;
9292 requestStub . args [ 0 ] [ 0 ] . should . eql ( "/auth/login" ) ;
93- result . log . called . should . be . false ;
94- result . warn . called . should . be . false ;
93+ result . log . called . should . be . false ( ) ;
94+ result . warn . called . should . be . false ( ) ;
9595 done ( ) ;
9696 } ) . otherwise ( done ) ;
9797 } ) ;
@@ -100,12 +100,12 @@ describe("commands/list", function() {
100100 requestStub . onCall ( 0 ) . returns ( when . resolve ( { type :"credentials" } ) ) ;
101101 requestStub . onCall ( 1 ) . returns ( when . reject ( ) ) ;
102102 command ( { } , result ) . then ( function ( ) {
103- config . tokens . calledOnce . should . be . true ;
103+ config . tokens . calledOnce . should . be . true ( ) ;
104104 should . not . exist ( config . tokens . args [ 0 ] [ 0 ] ) ;
105105
106- result . log . called . should . be . false ;
107- result . warn . called . should . be . true ;
108- / L o g i n f a i l e d / . test ( result . warn . args [ 0 ] [ 0 ] ) . should . be . true ;
106+ result . log . called . should . be . false ( ) ;
107+ result . warn . called . should . be . true ( ) ;
108+ / L o g i n f a i l e d / . test ( result . warn . args [ 0 ] [ 0 ] ) . should . be . true ( ) ;
109109 done ( ) ;
110110 } ) . otherwise ( done ) ;
111111 } ) ;
@@ -114,11 +114,11 @@ describe("commands/list", function() {
114114 var requestStub = sinon . stub ( request , "request" ) ;
115115 requestStub . onCall ( 0 ) . returns ( when . reject ( ) ) ;
116116 command ( { } , result ) . then ( function ( ) {
117- config . tokens . calledOnce . should . be . true ;
117+ config . tokens . calledOnce . should . be . true ( ) ;
118118 should . not . exist ( config . tokens . args [ 0 ] [ 0 ] ) ;
119- result . log . called . should . be . false ;
120- result . warn . called . should . be . true ;
121- / L o g i n f a i l e d / . test ( result . warn . args [ 0 ] [ 0 ] ) . should . be . true ;
119+ result . log . called . should . be . false ( ) ;
120+ result . warn . called . should . be . true ( ) ;
121+ / L o g i n f a i l e d / . test ( result . warn . args [ 0 ] [ 0 ] ) . should . be . true ( ) ;
122122 done ( ) ;
123123 } ) . otherwise ( done ) ;
124124 } ) ;
0 commit comments