Skip to content

Commit

Permalink
convert select tests to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
dqnykamp committed Oct 19, 2024
1 parent 4f5481f commit d13ebb6
Show file tree
Hide file tree
Showing 3 changed files with 3,281 additions and 5,650 deletions.
4 changes: 2 additions & 2 deletions packages/doenetml-worker/src/components/AsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ export default class AsList extends InlineComponent {
inlineChildren: {
dependencyType: "child",
childGroups: ["inline"],
variableNames: ["text"],
variableNames: ["text", "hidden"],
variablesOptional: true,
},
}),
definition: function ({ dependencyValues }) {
let textpieces =
dependencyValues.inlineChildren.map(textFromComponent);

let text = textpieces.join(", ");
let text = textpieces.filter((x) => x).join(", ");

return { setValue: { text } };
},
Expand Down
Loading

0 comments on commit d13ebb6

Please sign in to comment.