Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .prettierrc and update testing examples #1

Merged
merged 3 commits into from
Mar 13, 2022
Merged

Add .prettierrc and update testing examples #1

merged 3 commits into from
Mar 13, 2022

Conversation

bjoluc
Copy link
Member

@bjoluc bjoluc commented Jan 6, 2022

The testing examples look great to me – I'm especially impressed of the Jasmine one! Just ran prettier and added some minor aesthetic changes here and there.

],
conditional_function: () => {
const ic_data = jsPsych.data.get().filter({ task: "instructions-check" }).last(2);
return !ic_data.select("correct").all(Boolean);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this works 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Boolean constructor is nothing but a function that, given any value, returns true if it is "truthy" (== true) and false otherwise 😜

@jodeleeuw jodeleeuw merged commit d2ce4c8 into jspsych:main Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants