File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ describe("API", function () {
77
77
} ) ;
78
78
} ) ;
79
79
80
+ describe ( "post('auth/logout')" , function ( ) {
81
+ it ( 'should log out user' , function ( ) {
82
+ return cm . post ( 'auth/logout' ) . then ( ( resp ) => {
83
+ assert . ok ( resp ) ;
84
+ } ) ;
85
+ } ) ;
86
+ it ( 'should automatically log back in and get a list of Media' , function ( ) {
87
+ return cm . get ( 'media' , { 'limit' : 10 } ) . then ( ( media ) => {
88
+ assert . ok ( media . list ) ;
89
+ } ) ;
90
+ } ) ;
91
+ } ) ;
92
+
80
93
describe ( "post('storage')" , function ( ) {
81
94
it ( 'should get heartbeat of Players' , function ( ) {
82
95
return cm . post ( 'storage' , { 'ids' : plrids } ) . then ( ( uuid ) => {
@@ -215,4 +228,4 @@ describe("API", function () {
215
228
} ) ;
216
229
} ) ;
217
230
} ) ;
218
- } ) ;
231
+ } ) ;
Original file line number Diff line number Diff line change 2
2
"baseurl" : " http://localhost/ContentManager" ,
3
3
"username" : " user" ,
4
4
"password" : " pass"
5
- }
5
+ }
You can’t perform that action at this time.
0 commit comments