mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-22 08:14:48 -06:00
fa9ae9437c
The gitbook install has been incredibly flaky due to it's dependency on npm. This commit simply vendors the node_modules so that each time we build the site the process doesn't have to re-run gitbook install. Signed-off-by: Torin Sandall <torinsandall@gmail.com>
13 lines
408 B
JavaScript
13 lines
408 B
JavaScript
var test = require("tape");
|
|
var escape = require("./");
|
|
|
|
test("escaping", function(t) {
|
|
t.equal(escape("no escape"), "no escape");
|
|
t.equal(escape("foo&bar"), "foo&bar");
|
|
t.equal(escape("<tag>"), "<tag>");
|
|
t.equal(escape("test=\'foo\'"), "test='foo'");
|
|
t.equal(escape("test=\"foo\""), "test="foo"");
|
|
t.equal(escape("<ta'&g\">"), "<ta'&g">");
|
|
t.end();
|
|
});
|