forked from buefy/buefy
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test(lib): update Timepicker spec - Updates the unit tests (spec) of `Timepicker` so that they can work with Vue 3 and `@vue/test-utils` V2: - Prevents the following components from becoming stubs because default slots in a stub are no longer rendered on `@vue/test-utils` V2: - `Dropdown` - `DropdownItem` - `Field` - `Select` The snapshot and test case "disables hour if no selectable minutes available" depend on slots in `Select`. - Updates expected values of "disabled" attribute, because Vue 3 changed treatment of boolean attributes: - disabled: "disabled" → "" - not disabled: non "disabled" → undefined - Awaits `wrapper.setProps` to make sure the subsequent tests verify the updated state. - Replaces `wrapper.name()` with `wrapper.vm.$options.name` because `wrapper.name` no longer exists in `@vue/test-utils` V2. - Replaces the test on `wrapper.isVueInstance()` with presence of `wrapper.vm` because `wrapper.isVueInstance` no longer exists in `@vue/test-utils` V2. - Refreshes the snapshot. I did not find any problems in the updated snapshot. issue ntohq#1 * test(lib): update TimepickerMixin spec - Updates the unit tests (spec) of `TimepickerMixin` so that they can work with `@vue/test-utils` V2: - Corrects a v-model binding: - event: `input` → `update:modelValue` - Moves the `mixins` option for `shallowMount` to the component's definition. Because it is more straightforward. - Replaces `attachToDocument` with `attachTo: document.body`, because `attachToDocument` might be deprecated in the future. - Replaces legacy async test cases with async functions. issue ntohq#1
- Loading branch information
Showing
3 changed files
with
87 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.