Skip to content
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

port: [#4351] Throwing for invalid runtimeSettings.storage values or missing storage config (#6533) #4381

Merged
merged 1 commit into from
Jan 4, 2023

Conversation

ceciliaavila
Copy link
Collaborator

Fixes #4351

Description

This PR ports the changes from .NET PR#6533 to throw an error if the storage value of the runtimeSettings does not match any of the possible values. Only defaults to MemoryStorage for an empty/missing storage value.

Specific Changes

  • Updated default case in addStorage function of botbuilder-dialogs-adaptive-runtime/index.ts.
  • Updated a unit test and added two new ones to cover the new scenario in botbuilder-dialogs-adaptive-runtime/test/index.test.ts.

Testing

This image shows the new unit tests passing.
image

@ceciliaavila ceciliaavila requested a review from a team as a code owner December 5, 2022 20:43
@coveralls
Copy link

coveralls commented Dec 5, 2022

Pull Request Test Coverage Report for Build 3623830676

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.003%) to 84.633%

Totals Coverage Status
Change from base Build 3587703730: -0.003%
Covered Lines: 19968
Relevant Lines: 22357

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit a591fc3 into main Jan 4, 2023
@tracyboehrer tracyboehrer deleted the southworks/add/throw-invalid-storage branch January 4, 2023 18:14
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.

port: Throwing for invalid runtimeSettings.storage values or missing storage config (#6533)
3 participants