@@ -16,35 +16,35 @@ describe("Check for a Products Supply", () => {
16
16
expect ( response [ 0 ] . infiniteSupply ) . toBe ( false ) ;
17
17
expect ( response [ 0 ] . pid ) . toBe ( 4963004 ) ;
18
18
} ) ;
19
- test ( "Search for 4979976 " , async ( ) => {
19
+ test ( "Search for 228006 " , async ( ) => {
20
20
const guestInfo = await MigrosAPI . account . oauth2 . getGuestToken ( ) ;
21
21
const productSupplyOptions : IProductSupplyOptions = {
22
- pids : "4979976 " ,
22
+ pids : "228006 " ,
23
23
warehouses : 1 ,
24
24
} ;
25
25
const response = await MigrosAPI . products . productStock . getProductSupply (
26
26
productSupplyOptions ,
27
27
{ leshopch : guestInfo . token } ,
28
28
) ;
29
29
expect ( response [ 0 ] . infiniteSupply ) . toBe ( false ) ;
30
- expect ( response [ 0 ] . pid ) . toBe ( 4979976 ) ;
30
+ expect ( response [ 0 ] . pid ) . toBe ( 228006 ) ;
31
31
} ) ;
32
32
} ) ;
33
33
34
34
describe ( "Check for multiple Products Supplies" , ( ) => {
35
- test ( "Search for 4963004 and 4979976 " , async ( ) => {
35
+ test ( "Search for 4963004 and 228006 " , async ( ) => {
36
36
const guestInfo = await MigrosAPI . account . oauth2 . getGuestToken ( ) ;
37
37
const productSupplyOptions : IProductSupplyOptions = {
38
- pids : [ "4963004" , "4979976 " ] ,
38
+ pids : [ "4963004" , "228006 " ] ,
39
39
warehouses : 1 ,
40
40
} ;
41
41
const response = await MigrosAPI . products . productStock . getProductSupply (
42
42
productSupplyOptions ,
43
43
{ leshopch : guestInfo . token } ,
44
44
) ;
45
45
expect ( response [ 0 ] . infiniteSupply ) . toBe ( false ) ;
46
- expect ( response [ 0 ] . pid ) . toBe ( 4979976 ) ;
46
+ expect ( response [ 0 ] . pid ) . toBe ( 4963004 ) ;
47
47
expect ( response [ 1 ] . infiniteSupply ) . toBe ( false ) ;
48
- expect ( response [ 1 ] . pid ) . toBe ( 4963004 ) ;
48
+ expect ( response [ 1 ] . pid ) . toBe ( 228006 ) ;
49
49
} ) ;
50
50
} ) ;
0 commit comments