UNPKG

http-backend-proxy

Version:

A proxy that allows configuring the AngularJs e2e $httpBackend service from within protractor based tests and enables protractor-to-browser data sharing.

43 lines 1.35 kB
module.exports = [ { regex : /find me/, output: 'new RegExp("find me")', desc : 'litterals' }, { regex : /find me/ig, output: 'new RegExp("find me","gi")', desc : 'litterals with modifiers' }, { regex : new RegExp('find me'), output: 'new RegExp("find me")', desc : 'constructors' }, { regex : new RegExp('find me', 'ig'), output: 'new RegExp("find me","gi")', desc : 'constructors with modifiers' }, { regex : /\/a\/path/, output: 'new RegExp("\\\\/a\\\\/path")', desc : 'litterals with forward slashes' }, { regex : new RegExp('/a/path'), output: 'new RegExp("/a/path")', desc : 'constructors with forward slashes' }, { regex : /'quoted'/, output: 'new RegExp("\'quoted\'")', desc : 'litterals with single quotes' }, { regex : new RegExp("'quoted'"), output: 'new RegExp("\'quoted\'")', desc : 'constructors with single quotes' }, { regex : /"quoted"/, output: 'new RegExp("\\\"quoted\\\"")', desc : 'litterals with double quotes' }, { regex : new RegExp('"quoted"'), output: 'new RegExp("\\\"quoted\\\"")', desc : 'constructors with double quotes' } ];