Commit 18f1a19c authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixed tests

parent f4cd819c
......@@ -76,5 +76,17 @@ class FractalJS {
* @returns {FractalJS}: An instance of FractalJS.
*/
export function init ({handler, dataSource, fractalisNode, getAuth, options}) {
if (!handler) {
throw new Error(`handler property must not be ${handler}`)
}
if (!dataSource) {
throw new Error(`handler property must not be ${dataSource}`)
}
if (!fractalisNode) {
throw new Error(`handler property must not be ${fractalisNode}`)
}
if (!getAuth) {
throw new Error(`handler property must not be ${getAuth}`)
}
return new FractalJS(handler, dataSource, fractalisNode, getAuth, options)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment