MCPcopy Index your code
hub / github.com/deployd/deployd / example

Function example

test/router.unit.js:226–235  ·  view source on GitHub ↗
(path, url, expected)

Source from the content-addressed store, hash-verified

224
225 describe('.generateRegex()', function() {
226 function example(path, url, expected) {
227 var regex = Router.prototype.generateRegex(path)
228 , result = url.match(regex);
229
230 if (expected) {
231 expect(result).to.be.ok;
232 } else {
233 expect(result).to.not.be.ok;
234 }
235 }
236
237 it('should properly match the url', function() {
238 // should pass

Callers 1

router.unit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected