mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-18 14:21:32 +03:00
refactor(skill/todo_list): replace <strike> by <s>
This commit is contained in:
parent
fe90c68ea0
commit
db1246735c
@ -63,7 +63,7 @@
|
||||
"<li>%todo%.</li>"
|
||||
],
|
||||
"list_completed_todo_element": [
|
||||
"<li><strike>%todo%</strike>.</li>"
|
||||
"<li><s>%todo%</s>.</li>"
|
||||
],
|
||||
"todos_added": [
|
||||
"Alright, I added the following to your \"%list%\" list:<br><br><ul>%result%</ul>",
|
||||
|
@ -63,7 +63,7 @@
|
||||
"<li>%todo%.</li>"
|
||||
],
|
||||
"list_completed_todo_element": [
|
||||
"<li><strike>%todo%</strike>.</li>"
|
||||
"<li><s>%todo%</s>.</li>"
|
||||
],
|
||||
"todos_added": [
|
||||
"Entendu, j'ai ajouté ceci à votre liste \"%list%\" :<br><br><ul>%result%</ul>",
|
||||
|
@ -30,7 +30,7 @@ describe('calendar:todolist', () => {
|
||||
|
||||
expect(global.brain.finalOutput.speech.split('</li>').length - 1).toBe(1)
|
||||
expect(global.brain.finalOutput.speech.indexOf('"shopping" list')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.speech.indexOf('<strike>1kg of rice</strike>')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.speech.indexOf('<s>1kg of rice</s>')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.codes).toIncludeSameMembers(['todos_completed'])
|
||||
})
|
||||
|
||||
@ -48,7 +48,7 @@ describe('calendar:todolist', () => {
|
||||
expect(global.brain.interOutput.speech.indexOf('bread')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.speech.split('</li>').length - 1).toBe(1)
|
||||
expect(global.brain.finalOutput.speech.indexOf('"shopping" list')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.speech.indexOf('<strike>1kg of rice</strike>')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.speech.indexOf('<s>1kg of rice</s>')).not.toBe(-1)
|
||||
expect(global.brain.finalOutput.codes).toIncludeSameMembers([
|
||||
'unchecked_todos_listed',
|
||||
'completed_todos_listed'
|
||||
|
Loading…
Reference in New Issue
Block a user