Sha256: f7b36feb795ce5ec7012396cdf01d13c9dc3c81954246066bb72c3414eced302
Contents?: true
Size: 697 Bytes
Versions: 11
Compression:
Stored size: 697 Bytes
Contents
/* eslint-env mocha */ var assert = require('assert'); var helpers = require("../helpers"); describe("helpers", function() { describe("pathMatch", function() { var pathMatch = helpers.pathMatch; it("should match exact path", function() { assert.ok(pathMatch("/path", "/path")); }); it("should match path with querystring", function() { assert.ok(pathMatch("/path?abc=123", "/path")); }); it("should not match different path", function() { assert.equal(pathMatch("/another", "/path"), false); }); it("should not match path with other stuff on the end", function() { assert.equal(pathMatch("/path-and", "/path"), false); }); }); });
Version data entries
11 entries across 11 versions & 1 rubygems