2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

rebuilding #741 with less conflicts

This commit is contained in:
Jeff
2019-11-08 18:04:14 -08:00
parent fb85715209
commit c40e53f532
3 changed files with 69 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
import { mountDefault } from '../helpers';
fdescribe('International Text', () => {
it('renders default text for spinner.text', () => {
const Select = mountDefault({loading: true,});
expect(Select.find('.vs__spinner').text()).toBe('Loading...')
});
it('renders default text for noOptions.text', () => {
const Select = mountDefault({options: []});
Select.vm.open = true;
expect(Select.find('.vs__no-options').text()).toBe('Sorry, no matching options.')
});
it('renders default text for search.ariaLabel', () => {
const Select = mountDefault();
expect(Select.find('.vs__search').attributes()['aria-label']).toBe('Search for options')
});
it('renders default text for deselect.ariaLabel', () => {
const Select = mountDefault({value: 'one', multiple: true});
expect(Select.find('.vs__deselect').attributes()['aria-label']).toBe('Deselect Option')
});
});