mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-29 03:13:45 +01:00
15 lines
455 B
JavaScript
15 lines
455 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
const parser = require("../src/bruToJson");
|
|
|
|
describe("parser", () => {
|
|
it("should parse the bru file", () => {
|
|
const input = fs.readFileSync(path.join(__dirname, 'fixtures', 'request.bru'), 'utf8');
|
|
const expected = require("./fixtures/request.json");
|
|
const output = parser(input);
|
|
|
|
// console.log(JSON.stringify(output, null, 2));
|
|
expect(output).toEqual(expected);
|
|
});
|
|
});
|