bruno/packages/bruno-lang/v2/tests/index.spec.js
2023-02-03 04:39:45 +05:30

18 lines
339 B
JavaScript

const parser = require("../src/index");
describe("parser", () => {
it("should parse headers", () => {
const input = `headers {
hello: world,
foo: bar
}`;
const expected = [
{ key: "hello", value: "world" },
{ key: "foo", value: "bar" }
];
expect(parser(input)).toEqual(expected);
});
});