ts-mdls
Version:
Lightweigth, dependency free, fully typed wrapper of the macOS `mdls` command
17 lines • 673 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const parsers_1 = require("../src/utilities/parsers");
describe("Testing parsers", () => {
describe("Parsing strings", () => {
test('Removing " from "Hello World!"', () => {
expect((0, parsers_1.parseString)('"Hello World!"')).toBe("Hello World!");
});
test("Don't change Hello World!", () => {
expect((0, parsers_1.parseString)("Hello World!")).toBe("Hello World!");
});
});
test("Parse null from (null)", () => {
expect((0, parsers_1.parseNull)("(null)")).toBeNull();
});
});
//# sourceMappingURL=index.test.js.map