UNPKG

@itsmworkbench/jsyaml

Version:

13 lines (12 loc) 434 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsYaml_1 = require("./jsYaml"); const capability = (0, jsYaml_1.jsYaml)(); describe("YamlCapability using jsYaml", () => { it("should write {}", () => { expect(capability.writer({})).toEqual(`{}\n`); }); it("should write {a: 1, b: 2}", () => { expect(capability.writer({ a: 1, b: 2 })).toEqual(`a: 1\nb: 2\n`); }); });