Skip to content

Conversation

@joshgummersall
Copy link
Contributor

Fixes #2805

This PR also includes a small test refactoring to use sinon for mocking and verifying error handling. It's a more natural way to set up expectations and verify them without patching methods. It was a bit of bikeshedding, but it should serve as a useful example for future testing scenarios.

}).use(new TranscriptLoggerMiddleware(new SyncErrorLogger()));

adapter.send('test');
describe("'s error handling", function () {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference, this is the major test refactor portion.

@joshgummersall joshgummersall force-pushed the joshgummersall/filter-continue-conversation-events branch from d448d37 to d7d764c Compare October 15, 2020 15:59
@joshgummersall joshgummersall requested a review from gabog October 15, 2020 23:25
@joshgummersall joshgummersall force-pushed the joshgummersall/filter-continue-conversation-events branch from d7d764c to 2311b83 Compare October 16, 2020 17:23
Copy link
Member

@stevengum stevengum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the actual values of constants, enums, etc we do stay aligned with what's used in C#/other languages. Once the .NET PR lands the The ActivityEventNames enum in JS should match what's in .NET. Other than that, the PR looks solid!

As a general rule, if it's a value that might be serialized and could be shared across languages, it should be aligned across all languages.

Copy link
Member

@stevengum stevengum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@joshgummersall joshgummersall merged commit 1f4767a into main Oct 20, 2020
@joshgummersall joshgummersall deleted the joshgummersall/filter-continue-conversation-events branch October 20, 2020 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TranscriptLoggerMiddleware is logging ContinueConversation events to transcript log (JS)

3 participants