Skip to content

Commit

Permalink
export fake
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe-lew committed Dec 14, 2023
1 parent 6d66eee commit 7d81588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/http-server/src/fakes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const fakeOfferingsApi: OfferingsApi = {
async getOfferings() { return [offering] }
}

interface FakeExchangesApi extends ExchangesApi {
export interface FakeExchangesApi extends ExchangesApi {
exchangeMessagesMap: Map<string, MessageKindClass[]>,
addMessage(message: MessageKindClass): void
}
Expand Down
3 changes: 2 additions & 1 deletion packages/http-server/tests/submit-close.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { Server } from 'http'

import { Close, DevTools, TbdexHttpServer } from '../src/main.js'
import { expect } from 'chai'
import { FakeExchangesApi } from '../src/fakes.js'

let api = new TbdexHttpServer()
let server: Server
Expand Down Expand Up @@ -76,7 +77,7 @@ describe('POST /exchanges/:exchangeId/close', () => {
expect(error.detail).to.include('No exchange found for')
})

xit(`returns a 409 if close is not allowed based on the exchange's current state`, async () => {
it(`returns a 409 if close is not allowed based on the exchange's current state`, async () => {
// add a close message
const close = Close.create({
metadata: {
Expand Down

0 comments on commit 7d81588

Please sign in to comment.