Skip to content

Commit

Permalink
remove commented out test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Jul 11, 2023
1 parent b551195 commit 167cf0a
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/resources/websocket.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,36 +129,3 @@ describe('Registering websocket resources', () => {
});
});

// describe('subscription', () => {
// const startSpy = jest
// .spyOn(faas.Faas.prototype, 'start')
// .mockReturnValue(Promise.resolve());
// const mockFn = jest.fn();

// afterAll(() => {
// jest.clearAllMocks();
// });

// describe('When registering a subscription', () => {
// afterAll(() => {
// jest.resetAllMocks();
// });

// beforeAll(async () => {
// await topic('test-subscribe').subscribe(mockFn);
// });

// it('should create a new FaasClient', () => {
// expect(faas.Faas).toBeCalledTimes(1);
// });

// it('should provide Faas with SubscriptionWorkerOptions', () => {
// const expectedOpts = new SubscriptionWorkerOptions('test-subscribe');
// expect(faas.Faas).toBeCalledWith(expectedOpts);
// });

// it('should call FaasClient::start()', () => {
// expect(startSpy).toBeCalledTimes(1);
// });
// });
// });

0 comments on commit 167cf0a

Please sign in to comment.