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

Better props docs and test #105

Merged
merged 9 commits into from
Sep 14, 2022
Merged

Better props docs and test #105

merged 9 commits into from
Sep 14, 2022

Conversation

janosh
Copy link
Owner

@janosh janosh commented Sep 14, 2022

Same treatment for svelte-multiselect as janosh/svelte-toc#24 and janosh/svelte-bricks@e282a7.

update CSS vars on demo site
…ncies on windows

also move vitest tests to tests/unit/*.ts

CI error:
 FAIL  tests/readme.test.ts > readme documents all props and their correct types and defaults
 ❯ tests/readme.test.ts:41:24
AssertionError: expected '<h1 align="center">\r\n  <img src="ht…' to match /1. ```ts\n   activeIndex: .+ = null/
     39|       const expected = new RegExp(`${prop_delim_start}${prop}: .+ = nu…
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

     40|
     41|       expect(readme).to.match(expected)
       |                        ^
     42|     } else {
     43|       expect(readme).to.contain(`${prop_delim_start}${prop}: `)
@janosh janosh merged commit 423ef0c into main Sep 14, 2022
@janosh janosh deleted the better-props-docs-and-test branch September 14, 2022 03:10
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.

1 participant