diff --git a/src/components/autosuggest/_macro.spec.js b/src/components/autosuggest/_macro.spec.js index acb06d8cf5..4308d5f2d7 100644 --- a/src/components/autosuggest/_macro.spec.js +++ b/src/components/autosuggest/_macro.spec.js @@ -81,6 +81,10 @@ describe('FOR: Macro: Autosuggest', () => { expect($('.ons-autosuggest').attr('data-result-threshold')).toBe('0.5'); }); + test('THEN: it has language set to "en-gb"', () => { + expect($('.ons-autosuggest').attr('data-lang')).toBe('en-gb'); + }); + test('THEN: it has the expected id on the results title element', () => { expect($('.ons-autosuggest__results-title').attr('id')).toBe('country-of-birth-suggestions'); }); diff --git a/src/components/autosuggest/_test-examples.js b/src/components/autosuggest/_test-examples.js index b684e5d9b4..9b235ca915 100644 --- a/src/components/autosuggest/_test-examples.js +++ b/src/components/autosuggest/_test-examples.js @@ -23,6 +23,7 @@ export const EXAMPLE_AUTOSUGGEST = { autosuggestData: '/examples/data/country-of-birth.json', noResults: 'No suggestions found. You can enter your own answer', typeMore: 'Continue entering to get suggestions', + language: 'en-gb', }; export const EXAMPLE_AUTOSUGGEST_WITH_RESULTS_THRESHOLD = {