-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cherrypick changes for 4.14.1 (#3871)
* port: beginskill uischema fix (#3854) Fixes #3853 * make getTopScoringIntent return '' instead of undefined (#3870) Co-authored-by: taicchoumsft <61705609+taicchoumsft@users.noreply.github.com>
- Loading branch information
1 parent
c4d0d5b
commit 8590995
Showing
5 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
libraries/botbuilder-core/tests/getTopScoringIntent.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const assert = require('assert'); | ||
const { getTopScoringIntent} = require('../lib'); | ||
|
||
describe('getTopScoringIntent', function () { | ||
it(' should never return undefined', function () { | ||
let result = getTopScoringIntent({ | ||
text: '', | ||
intents: {}, | ||
entities: {} | ||
}); | ||
|
||
assert.notStrictEqual(result.intent, undefined); | ||
assert.strictEqual(result.intent, ''); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters