start with adapter

This commit is contained in:
Leifer Mendez
2022-01-15 13:23:56 +01:00
parent 1d3410ac91
commit ccca7f5612
8 changed files with 104 additions and 17 deletions

View File

@@ -1,13 +1,8 @@
const getMessages = (step) => {
switch (step) {
case 'STEP_1':
return ['hola', 'hi']
break;
case 'STEP_2':
return ['hola', 'hi']
break;
}
return null
const {get} = require('../adapter')
const getMessages = async (step, message) => {
const data = await get(step)
return data.includes(message)
}