Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
kengoldfarb committed May 27, 2020
1 parent f7c2f23 commit 984fffa
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/Mercury.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import BaseTest, { test, assert } from '@sprucelabs/test'
import MercuryMock from './MercuryMock'
import { IMercuryEventContract } from './types/mercuryEvents'
import { MercurySubscriptionScope } from './types/subscriptions'
// import { MercurySubscriptionScope } from './types/subscriptions'

export const SpruceEvents = {
core: {
Expand Down Expand Up @@ -53,13 +52,6 @@ export default class MercuryTest extends BaseTest {

@test('Can create an event contract')
protected static async createEventContract() {
// mercury.emit(
// { namespace: 'core', eventName: 'didLeave' },
// null,
// body => {
// console.log(body)
// }
// )
this.mercury.setMockResponse({
eventName: SpruceEvents.core.DidEnter,
payload: {
Expand All @@ -71,8 +63,6 @@ export default class MercuryTest extends BaseTest {

this.mercury.on(
{
// eventName: 'did-enter',
// eventName: SpruceEvents.core.DidEnter,
eventName: SpruceEvents.core.DidEnter,
scope: MercurySubscriptionScope.AnonymousGlobal
},
Expand All @@ -92,15 +82,5 @@ export default class MercuryTest extends BaseTest {

assert.isOk(result.responses[0].payload.somethingElse)
assert.equal(numCallbacks, 1)

// mercury.emit(SpruceEvents.core.didEnter)

// const eventContract: IMercuryEventContract = {
// core: {
// didEnter: {

// }
// }
// }
}
}

0 comments on commit 984fffa

Please sign in to comment.