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

Version Path
webpack_rails-2.0.1 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-2.0.0 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.3.1 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.3.0 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.2.2 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.2.1 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.2.0 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.1.1 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.1.0 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.0.1 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js
webpack_rails-1.0.0 lib/webpack_rails/node_modules/webpack-hot-middleware/test/helpers-test.js