import Ember from 'ember';
import {
  moduleFor,
  test
} from 'ember-qunit';

moduleFor('service:i18n', {
  // Specify the other units that are required for this test.
  // needs: ['service:foo']
});

test('it exists', function(assert) {
  var service = this.subject();
  assert.ok(service);
});

test('throws when action names are blank', function (assert) {
  var service = this.subject();

  assert.throws(function () { service.registerPreInitAction('', function () {}); },
    'Throws if pre-init action name is blank.');
  assert.throws(function () { service.registerPostInitAction('', function () {}); },
    'Throws if post-init action name is blank.');
});

test('throws when actions are not functions', function (assert) {
  var service = this.subject();

  assert.throws(function () { service.registerPreInitAction('woo', 'woo'); },
   'Throws if pre-init action is not a function.');
  assert.throws(function () { service.registerPostInitAction('woo', 'hoo'); },
    'Throws if post-init action is not a function.');
});

import {
  moduleFor,
  test
} from 'ember-qunit';

moduleFor('service:i18n', {
  // Specify the other units that are required for this test.
  // needs: ['service:foo']
});

test('it exists', function(assert) {
  var service = this.subject();
  assert.ok(service);
});

test('throws when action names are blank', function (assert) {
  var service = this.subject();

  assert.throws(function () { service.registerPreInitAction('', function () {}); },
    'Throws if pre-init action name is blank.');
  assert.throws(function () { service.registerPostInitAction('', function () {}); },
    'Throws if post-init action name is blank.');
});

test('throws when actions are not functions', function (assert) {
  var service = this.subject();

  assert.throws(function () { service.registerPreInitAction('woo', 'woo'); },
   'Throws if pre-init action is not a function.');
  assert.throws(function () { service.registerPostInitAction('woo', 'hoo'); },
    'Throws if post-init action is not a function.');
});

Remove import for debug code
Remove import for debug code

Remove an import added during debugging.
