Skip to content

Commit

Permalink
Node tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 7, 2024
1 parent 2dc4dcc commit e5146d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/parse.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ describe(`parse`, function () {
p.process(
`const thing = "face";
<template>Hi`,
{ filename: 'path/to/my/component.gjs' }
{ filename: "path/to/my/component.gjs" }
);
}).to.throw(`Parse Error at path/to/my/component.gjs:2:15: 2:15`);
});
Expand Down
6 changes: 3 additions & 3 deletions test/process.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe(`process`, function () {
it("works for a basic example", function () {
let output = p.process("<template>Hi</template>");

expect(normalizeOutput(output)).to
expect(normalizeOutput(output.code)).to
.equalCode(`import { template as template_UUID } from "@ember/template-compiler";
export default template_UUID(\`Hi\`, {
eval () {
Expand All @@ -36,7 +36,7 @@ describe(`process`, function () {

let output = p.process(input);

expect(normalizeOutput(output)).to.equalCode(
expect(normalizeOutput(output.code)).to.equalCode(
`import { template as template_UUID } from "@ember/template-compiler";
class Foo extends Component {
greeting = 'Hello';
Expand Down Expand Up @@ -97,7 +97,7 @@ describe(`process`, function () {
it("Provides inline source maps if inline_source_map option is set to true", function () {
let output = p.process(`<template>Hi</template>`, { inline_source_map: true });

expect(output).to.match(
expect(output.code).to.match(
/sourceMappingURL=data:application\/json;base64,/
);
});
Expand Down
2 changes: 1 addition & 1 deletion test/require.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("cjs/require", function () {
it("can call process", function () {
let output = p.process("<template>Hi</template>");

expect(normalizeOutput(output)).to
expect(normalizeOutput(output.code)).to
.equalCode(`import { template as template_UUID } from "@ember/template-compiler";
export default template_UUID(\`Hi\`, {
eval () {
Expand Down

0 comments on commit e5146d0

Please sign in to comment.