import Registry from '../registry' ; module helper { export module protractor { param registry param ngApimockId export function addSessionIfNonExisting ( registry , ngApimockId ) { if ( registry . sessions [ ngApimockId ] === undefined ) { registry . sessions [ ngApimockId ] = { selections : JSON . parse ( JSON . stringify ( registry . defaults ) ) , variables : { } , delays : { } , echos : { } } ; } } } } export default helper ;