Skip to content

Commit

Permalink
Use tuple instead of object (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
spenserblack authored Nov 14, 2024
1 parent bc9867f commit ccbc88e
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 92 deletions.
2 changes: 1 addition & 1 deletion packages/cli/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ program
.argument("[file]", "File to parse (STDIN if not specified)")
.action(async (file, options) => {
const content = file == null ? getStdin() : fs.readFile(file, "utf-8");
const { tree, context } = parse(await content);
const [tree, context] = parse(await content);

if (options.ast) {
console.log(JSON.stringify(tree));
Expand Down
2 changes: 1 addition & 1 deletion packages/html/__tests__/html.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const demoFile = fs.readFileSync(path.join(__dirname, "demo.stmd"), "utf-8");
describe("html", () => {
describe("render", () => {
it("renders the demo file", () => {
const { tree, context } = parse(demoFile);
const [tree, context] = parse(demoFile);
const rendered = render(tree, context);
expect(rendered).toMatchSnapshot();
});
Expand Down
Loading

0 comments on commit ccbc88e

Please sign in to comment.