-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace done w/ async part 5 (final PR for this) #3436
Conversation
@@ -134,7 +134,7 @@ export class DialogTestClient { | |||
* Send an activity into the dialog. | |||
* | |||
* ```javascript | |||
* DialogTest.send('hello').assertReply('hello yourself').then(done); | |||
* await DialogTest.send('hello').assertReply('hello yourself').startTest(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Figured I may as well make the comments show the "right" way.
}); | ||
it('should fail with invalid conversatoinId', function(done) { | ||
var params = createConversation(); | ||
it('should fail with invalid conversationId', async function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Renaming this test required this file to be renamed, below: Bot_Framework_Connector_SDK_Conversations_GetActivityMembers_should_fail_with_invalid_conversationId.nock.js
Pull Request Test Coverage Report for Build 684548287
💛 - Coveralls |
Note: Even though this basically only covers
botbuilder-connector
, this is the last PR on this issue and everything that can be easily converted now has been.Fixes #3226
Covers
(Alphabetically such that
botbuilder
comes beforebotbuilder-
)botbuilder-dialogs-adaptive
through end, inclusiveExcludes
connector.test.js
botframework-streaming
. Many rely on callbacks and don't work when converted.Description
Replaces the use of
done()
in tests with properasync/await
.Specific Changes
done
=>async/await
done(err)