Drenmi/sludge

View on GitHub
src/guards/actorMustBeAwake.js

Summary

Maintainability
A
0 mins
Test Coverage
function actorMustBeAwake(actor) {
const MESSAGE = `You are asleep ...`
 
if(actor.isAwake) {
return true
} else {
return MESSAGE
}
}
 
module.exports = actorMustBeAwake