Skip to content

Commit ccbc88e

Browse files
authored
Use tuple instead of object (#261)
1 parent bc9867f commit ccbc88e

File tree

7 files changed

+85
-92
lines changed

7 files changed

+85
-92
lines changed

packages/cli/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ program
2222
.argument("[file]", "File to parse (STDIN if not specified)")
2323
.action(async (file, options) => {
2424
const content = file == null ? getStdin() : fs.readFile(file, "utf-8");
25-
const { tree, context } = parse(await content);
25+
const [tree, context] = parse(await content);
2626

2727
if (options.ast) {
2828
console.log(JSON.stringify(tree));

packages/html/__tests__/html.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const demoFile = fs.readFileSync(path.join(__dirname, "demo.stmd"), "utf-8");
88
describe("html", () => {
99
describe("render", () => {
1010
it("renders the demo file", () => {
11-
const { tree, context } = parse(demoFile);
11+
const [tree, context] = parse(demoFile);
1212
const rendered = render(tree, context);
1313
expect(rendered).toMatchSnapshot();
1414
});

0 commit comments

Comments
 (0)