cropit-service-test.js 698 B

1234567891011121314151617181920212223242526272829
  1. /* global zxcvbn */
  2. import Ember from 'ember';
  3. import { module, test } from 'qunit';
  4. import startApp from '../helpers/start-app';
  5. var application, container, service;
  6. module('Acceptance: CropitService', {
  7. beforeEach: function() {
  8. application = startApp();
  9. container = application.__container__;
  10. service = container.lookup('service:cropit');
  11. },
  12. afterEach: function() {
  13. Ember.run(application, 'destroy');
  14. }
  15. });
  16. test('loading cropit jquery extension', function(assert) {
  17. var done = assert.async();
  18. assert.expect(1);
  19. Ember.run(function() {
  20. service.load().then(function() {
  21. assert.ok(typeof Ember.$.fn.cropit !== 'undefined');
  22. done();
  23. });
  24. });
  25. });