fix up delete token
This commit is contained in:
parent
700a77bc7d
commit
c57368684d
|
@ -475,6 +475,7 @@ const runIntegrationTests = async (ourKey, ourPubKeyHex) => {
|
||||||
it('create message to test with', async function() {
|
it('create message to test with', async function() {
|
||||||
// well we need to create a new message for moderation test
|
// well we need to create a new message for moderation test
|
||||||
// we do the asserts inside create_message
|
// we do the asserts inside create_message
|
||||||
|
//console.log('using', platformApi.token)
|
||||||
messageId = await create_message(channelId);
|
messageId = await create_message(channelId);
|
||||||
messageId1 = await create_message(channelId);
|
messageId1 = await create_message(channelId);
|
||||||
messageId2 = await create_message(channelId);
|
messageId2 = await create_message(channelId);
|
||||||
|
@ -501,6 +502,8 @@ const runIntegrationTests = async (ourKey, ourPubKeyHex) => {
|
||||||
it('user multi delete test', async function () {
|
it('user multi delete test', async function () {
|
||||||
//let message = await get_message(messageId);
|
//let message = await get_message(messageId);
|
||||||
if (messageId3 && messageId4) {
|
if (messageId3 && messageId4) {
|
||||||
|
// not sure how our token becomes a buffer...
|
||||||
|
overlayApi.token = tokenString
|
||||||
const result = await overlayApi.serverRequest('loki/v1/messages', {
|
const result = await overlayApi.serverRequest('loki/v1/messages', {
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
params: {
|
params: {
|
||||||
|
|
Loading…
Reference in New Issue