all files / src/constants/language/helpers/ templated-text.js

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28                                                
const base = 'Failed to create templated text.'
 
const MISMATCH_ERROR = `
${base}
The following template place holders are missing or not valid:
"{{MISMATCHED_PLACE_HOLDERS}}"
Valid places holders: "{{PLACE_HOLDERS}}"
* Remember, the place holders' text should be all uppercase!
`
 
const INVALID_RAW_TEXT = `
${base}
The first (text) parameter has to be a plain string, but received:
"{{TYPE_RECEIVED}}"
`
 
const INVALID_TEMPLATE = `
${base}
The second (template) parameter has to be a plain object, but received:
"{{TYPE_RECEIVED}}"
`
 
export {
    MISMATCH_ERROR,
    INVALID_RAW_TEXT,
    INVALID_TEMPLATE
}