QUnit.test('form language checks', (assert) => { App.Config.set('locale_default', 'de-de') $('#forms').append('

form language #1

') var el = $('#form1') new App.ControllerForm({ el: el, model: { configure_attributes: [ { name: 'language', display: 'Language', tag: 'language', null: false } ] }, }); var params = App.ControllerForm.params(el) assert.deepEqual(params, { language: 'de-de' }, 'default/fallback param check') }) QUnit.test('initial value', (assert) => { App.Config.set('locale_default', 'de-de') $('#forms').append('

form language #1

') var el = $('#form2') new App.ControllerForm({ el: el, model: { configure_attributes: [ { name: 'language', display: 'Language', tag: 'language', null: false, value: 'en-us' } ] }, }); var params = App.ControllerForm.params(el) assert.deepEqual(params, { language: 'en-us' }, 'initial param check') })