Skip to content

Commit

Permalink
Add another fixture: multiple properties on object
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 15, 2024
1 parent 3583c88 commit 1095eb3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/fixtures/multiple-properties.expected.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const obj = new Object ({
property1: "<%= @value1 %>",
propertyInBetween: "abc",
property2: "<%= @value2 %>",
});
<%= if @value3 %>
console.log(obj);
<% end %>
8 changes: 8 additions & 0 deletions tests/fixtures/multiple-properties.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const obj = new Object ( {
property1: "<%= @value1 %>",
propertyInBetween: "abc",
property2 : "<%= @value2 %>",
});
<%= if @value3 %>
console. log(obj);
<% end %>
1 change: 1 addition & 0 deletions tests/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ describe("Integration tests", () => {
"multi-line",
"multiple-erb-in-one-line",
"one-liner",
"multiple-properties",
];
mapFiles.forEach((name) => {
it(`performs linting as we expect it on ${name}.js`, async () => {
Expand Down

0 comments on commit 1095eb3

Please sign in to comment.