Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions tests/specs/expressions/CallExpression/CallExpression_All.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,27 @@ const x = await import .source("<specifier>");
const x = await import.source("<specifier>");
// not yet supported in swc
// const y = await import.defer("<specifier>");

== should keep a last function argument on the same line after multiple object or array arguments ==
cy.intercept({ method: "GET" }, { fixture: "x" }, (req) => {
req.reply();
doOther();
});
test.each([1, 2], [3, 4], (a, b) => {
expect(a).toBe(b);
});
register({ name: "a" }, { lazy: true }, function(value) {
return value;
});

[expect]
cy.intercept({ method: "GET" }, { fixture: "x" }, (req) => {
req.reply();
doOther();
});
test.each([1, 2], [3, 4], (a, b) => {
expect(a).toBe(b);
});
register({ name: "a" }, { lazy: true }, function(value) {
return value;
});
Loading