-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { assert } from 'chai'; | ||
import { BotScript, Request } from '../../src/engine'; | ||
|
||
describe('Population: Variable Capitalization', () => { | ||
|
||
it('should distinguish uppercase or lowercase', async () => { | ||
const bot = new BotScript(); | ||
|
||
bot.parse(` | ||
@ service1 put /api/http/put | ||
+ put me | ||
* true @> service1 | ||
- Result $message $Capitalization | ||
`); | ||
await bot.init(); | ||
|
||
const req = new Request(); | ||
const res = await bot.handleAsync(req.enter('put me')); | ||
assert.equal(res.speechResponse, 'Result Ok NewVar', 'bot response with command executed and distinguish common case'); | ||
}); | ||
|
||
}); |