Skip to content

Commit

Permalink
Fix spin function syntax for Svelte tutorial auto-grader (#626)
Browse files Browse the repository at this point in the history
Corrected arrow function syntax to include missing parenthesis around the "t" parameter and added semicolon after the last backtick in returned CSS string. The auto-grader expects both.
  • Loading branch information
musrex authored Jun 1, 2024
1 parent a01b542 commit 766e768
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ We can get a lot more creative though. Let's make something truly gratuitous:
function spin(node, { duration }) {
return {
duration,
css: t => +++{
css: (t) => +++{
const eased = elasticOut(t);
return `
Expand All @@ -62,7 +62,7 @@ We can get a lot more creative though. Let's make something truly gratuitous:
${Math.trunc(t * 360)},
${Math.min(100, 1000 * (1 - t))}%,
${Math.min(50, 500 * (1 - t))}%
);`
);`;
}+++
};
}
Expand Down

0 comments on commit 766e768

Please sign in to comment.