all files / src/helpers/ test-facilitator.js

25% Statements 1/4
100% Branches 0/0
100% Functions 0/0
25% Lines 1/4
1 2 3 4 5 6          
export const isUnknownErrorValid = (errorString, message) => {
    const prefixIndex = message.indexOf('Actual Error')
    const prefix = message.slice(0, prefixIndex - 1).trim()
    return errorString.trim().startsWith(prefix)
}