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

treat everything after first '=' as value for the property #1737

Merged
merged 1 commit into from
Feb 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libraries/botbuilder-lg/tests/lg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,9 @@ describe('LG', function() {

evaled = engine.evaluateTemplate('templateWithSquareBrackets', {manufacturer: {Name : 'Acme Co'}});
assert.deepStrictEqual(evaled, JSON.parse('{"lgType":"Struct","text":"Acme Co"}'));

evaled = engine.evaluateTemplate('ValueWithEqualsMark', {name : 'Jack'});
assert.deepStrictEqual(evaled, JSON.parse('{"lgType":"Activity","text":"Hello! welcome back. I have your name = Jack"}'));
});

it('TestEvaluateOnce', function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,11 @@
[MyStruct
Speak = ${GetAge()}
Text = zoo
]


> treat everything after the first = as value.
# ValueWithEqualsMark
[Activity
Text = Hello! welcome back. I have your name = ${name}
]