@@ -34,16 +34,15 @@ describe('api:request:rest NUT', () => {
34
34
35
35
describe ( 'std out' , ( ) => {
36
36
it ( 'get result in json format' , ( ) => {
37
- const result = execCmd ( "api request rest 'services/data/v56 .0/limits'" ) . shellOutput . stdout ;
37
+ const result = execCmd ( "api request rest 'services/data/v60 .0/limits'" ) . shellOutput . stdout ;
38
38
console . warn ( 'res' , result ) ;
39
39
// make sure we got a JSON object back
40
40
expect ( Object . keys ( JSON . parse ( result ) as Record < string , unknown > ) ) . to . have . length ;
41
41
} ) ;
42
42
43
43
it ( 'should pass headers' , ( ) => {
44
- const result = execCmd ( "api request rest 'services/data/v56 .0/limits' -H 'Accept: application/xml'" ) . shellOutput
44
+ const result = execCmd ( "api request rest 'services/data/v60 .0/limits' -H 'Accept: application/xml'" ) . shellOutput
45
45
. stdout ;
46
- console . log ( 'res' , result ) ;
47
46
48
47
// the headers will change this to xml
49
48
expect ( result . startsWith ( '<?xml version="1.0" encoding="UTF-8"?><LimitsSnapshot>' ) ) . to . be . true ;
@@ -52,9 +51,8 @@ describe('api:request:rest NUT', () => {
52
51
53
52
describe ( 'stream-to-file' , ( ) => {
54
53
it ( 'get result in json format' , ( ) => {
55
- const result = execCmd ( "api request rest 'services/data/v56 .0/limits' --stream-to-file out.txt" ) . shellOutput
54
+ const result = execCmd ( "api request rest 'services/data/v60 .0/limits' --stream-to-file out.txt" ) . shellOutput
56
55
. stdout ;
57
- console . log ( 'res' , result ) ;
58
56
59
57
expect ( result . trim ( ) ) . to . equal ( 'File saved to out.txt' ) ;
60
58
@@ -65,9 +63,8 @@ describe('api:request:rest NUT', () => {
65
63
66
64
it ( 'should pass headers' , ( ) => {
67
65
const result = execCmd (
68
- "api request rest 'services/data/v56 .0/limits' -H 'Accept: application/xml' --stream-to-file out.txt"
66
+ "api request rest 'services/data/v60 .0/limits' -H 'Accept: application/xml' --stream-to-file out.txt"
69
67
) . shellOutput . stdout ;
70
- console . log ( 'res' , result ) ;
71
68
72
69
expect ( result . trim ( ) ) . to . equal ( 'File saved to out.txt' ) ;
73
70
0 commit comments