Home Reference Source Test

test/sample/DeleteMemberSample.spec.js

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

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

describe('DeleteMemberSample test', () => {
    it('Should run the sample', async () => {
        const member = await CreateMemberSample();
        await member.aliases();
        await DeleteMemberSample(member);
        try {
            await member.aliases();
        } catch (err) {
            assert.include(err.info, BROWSER ? 'UNKNOWN' : 'MEMBER_ID_NOT_FOUND');
        }
    });
});