UNPKG

feed

Version:

Feed is a RSS, Atom and JSON feed generator for Node.js, making content syndication simple and intuitive!

18 lines (14 loc) 450 B
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", () => { expect(sanitize(undefined)).toBeUndefined(); }); });