@@ -5,38 +5,20 @@ describe('JS Cloud Bucketing Server SDK Initialize', () => {
55 jest . clearAllMocks ( )
66 } )
77
8- it ( 'sucessfully calls initialize with no options' , async ( ) => {
8+ it ( 'successfully calls initialize with no options' , async ( ) => {
99 const client = initializeDevCycle ( 'dvc_server_token' )
1010 expect ( client ) . toBeDefined ( )
1111 } )
1212
13- it ( 'fails to initialize in Local Bucketing mode when no token is provided' , ( ) => {
13+ it ( 'fails to initialize when no token is provided' , ( ) => {
1414 expect ( ( ) =>
1515 initializeDevCycle ( undefined as unknown as string ) ,
1616 ) . toThrow ( 'Missing SDK key! Call initialize with a valid SDK key' )
1717 } )
1818
19- it ( 'fails to initialize in Local Bucketing mode when client token is provided' , ( ) => {
19+ it ( 'fails to initialize when client token is provided' , ( ) => {
2020 expect ( ( ) => initializeDevCycle ( 'dvc_client_token' ) ) . toThrow (
2121 'Invalid SDK key provided. Please call initialize with a valid server SDK key' ,
2222 )
2323 } )
24-
25- it ( 'sucessfully calls initialize with enableCloudBucketing set to true' , ( ) => {
26- const client : DevCycleCloudClient = initializeDevCycle (
27- 'dvc_server_token' ,
28- {
29- enableCloudBucketing : true ,
30- } ,
31- )
32- expect ( client ) . toBeDefined ( )
33- } )
34-
35- it ( 'fails to initialize in Cloud Bucketing mode when no token is provided' , ( ) => {
36- expect ( ( ) =>
37- initializeDevCycle ( undefined as unknown as string , {
38- enableCloudBucketing : true ,
39- } ) ,
40- ) . toThrow ( 'Missing SDK key! Call initialize with a valid SDK key' )
41- } )
4224} )
0 commit comments