| test(
  'browser.tinymce.plugins.nonbreaking.SettingsTest',
  [
    'ephox.agar.api.Assertions',
    'tinymce.core.Editor',
    'tinymce.core.EditorManager',
    'tinymce.plugins.nonbreaking.api.Settings'
  ],
  function (Assertions, Editor, EditorManager, Settings) {
    Assertions.assertEq('Should be 0 as default', 0, Settings.getKeyboardSpaces(new Editor('x', {}, EditorManager)));
    Assertions.assertEq('Should return 3 if set to true', 3, Settings.getKeyboardSpaces(new Editor('x', { nonbreaking_force_tab: true }, EditorManager)));
    Assertions.assertEq('Should return 0 if set to false', 0, Settings.getKeyboardSpaces(new Editor('x', { nonbreaking_force_tab: false }, EditorManager)));
    Assertions.assertEq('Should return number if set', 4, Settings.getKeyboardSpaces(new Editor('x', { nonbreaking_force_tab: 4 }, EditorManager)));
  }
);
 |