Home Reference Source Test

test/sample/StoreAndRetrieveAccessTokenRequestSample.spec.js

import CreateMemberSample from '../../src/sample/CreateMemberSample';
import StoreAndRetrieveAccessTokenRequestSample
    from '../../src/sample/StoreAndRetrieveAccessTokenRequestSample';

const {assert} = require('chai');

describe('StoreAndRetrieveAccessTokenRequestSample test', () => {
    it('Should run the sample', async () => {
        const member = await CreateMemberSample();
        const res = await StoreAndRetrieveAccessTokenRequestSample(member);
        assert.isOk(res.tokenRequest.requestPayload);
        assert.isOk(res.tokenRequest.requestOptions);
    });
});