1
1
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:
louistiti 2022-02-13 07:54:51 +08:00
parent fe90c68ea0
commit db1246735c
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
3 changed files with 4 additions and 4 deletions

View File

@ -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>",

View File

@ -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>",

View File

@ -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'