Packages
Library for accessibility snapshot testing in Phoenix applications using axe-core and Playwright.
Current section
Files
Jump to
Current section
Files
assets/node_modules/bfj/src/error.js
'use strict'
module.exports = { create }
function create (actual, expected, line, column) {
const error = new Error(
/* eslint-disable prefer-template */
'JSON error: encountered `' + actual +
'` at line ' + line +
', column ' + column +
' where `' + expected +
'` was expected.'
/* eslint-enable prefer-template */
)
error.actual = actual
error.expected = expected
error.lineNumber = line
error.columnNumber = column
return error
}