feed
Version:
Feed is a RSS, Atom and JSON feed generator for Node.js, making content syndication simple and intuitive!
16 lines (13 loc) • 456 B
text/typescript
import { sanitize } from "../utils";
describe("Sanitizing", () => {
it("should sanitize & to &", () => {
expect('&').toEqual(sanitize('&'));
});
it("should handle multiple &", () => {
expect('https://test.com/?page=1&size=3&length=10').toEqual(sanitize('https://test.com/?page=1&size=3&length=10'));
});
it("should handle undefined", () => {
var undefined;
expect(sanitize(undefined)).toBeUndefined();
});
});