This commit is contained in:
Leifer Mendez
2022-10-29 19:11:44 +02:00
parent 3e2869b54a
commit eccbe59a1a
6 changed files with 64 additions and 39 deletions

View File

@@ -12,6 +12,15 @@ test('Debere probar las propeidades', () => {
assert.is(MAIN_CTX.ctx.keyword, ARRANGE.keyword)
})
test('Debere probar las propeidades array', () => {
const ARRANGE = {
keyword: ['hola!', 'ole'],
}
const MAIN_CTX = addKeyword(ARRANGE.keyword)
assert.is(MAIN_CTX.ctx.keyword, ARRANGE.keyword)
})
test('Debere probar el paso de contexto', () => {
const ARRANGE = {
keyword: 'hola!',
@@ -38,4 +47,10 @@ test('Debere probar la anidación', () => {
assert.is(MAIN_CTX.ctx.answer, ARRANGE.answer_B)
})
test('Debere probar las poptions', () => {
const MAIN_CTX = addKeyword('etc', { sensitive: false })
assert.is(MAIN_CTX.ctx.options.sensitive, false)
})
test.run()