|  | 
| 1 |  | -import { init, payment, FlexaContext } from '../index'; | 
|  | 1 | +import { init, payment, FlexaContext, logout, processUniversalLink, getLoginState } from '../index'; | 
| 2 | 2 | 
 | 
| 3 | 3 | describe('SDK exported functions tests', () => { | 
| 4 |  | -  it('Should have an exported init function accepting the correct parameters', () => { | 
|  | 4 | +  it('Should have an exported init function', () => { | 
| 5 | 5 |     expect(init).toBeDefined(); | 
|  | 6 | +    expect(init).toBeInstanceOf(Function); | 
| 6 | 7 |   }); | 
| 7 |  | -  it('Should have an exported payment function accepting the correct parameters', () => { | 
|  | 8 | +  it('Should have an exported payment function', () => { | 
| 8 | 9 |     expect(payment).toBeDefined(); | 
|  | 10 | +    expect(payment).toBeInstanceOf(Function); | 
|  | 11 | + | 
| 9 | 12 |   }); | 
| 10 |  | -  it('Should have an exported SDK open context provider and consumer accepting the correct parameters', () => { | 
|  | 13 | +  it('Should have an exported SDK open context provider and consumer', () => { | 
| 11 | 14 |     expect(FlexaContext).toBeDefined(); | 
| 12 | 15 |     expect(FlexaContext.FlexaContextProvider).toBeDefined(); | 
| 13 | 16 |     expect(FlexaContext.FlexaContextConsumer).toBeDefined(); | 
| 14 | 17 |   }); | 
|  | 18 | + | 
|  | 19 | +  it("Should export logout, getLoginState and processUniversalLink functions", () => { | 
|  | 20 | +    expect(logout).toBeDefined(); | 
|  | 21 | +    expect(logout).toBeInstanceOf(Function); | 
|  | 22 | +    expect(processUniversalLink).toBeDefined(); | 
|  | 23 | +    expect(processUniversalLink).toBeInstanceOf(Function); | 
|  | 24 | +    expect(getLoginState).toBeDefined(); | 
|  | 25 | +    expect(getLoginState).toBeInstanceOf(Function); | 
|  | 26 | +  }) | 
| 15 | 27 | }); | 
0 commit comments