Guest User

Untitled

a guest
Dec 7th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. import { moduleFor, test } from 'ember-qunit';
  2. import Song from '../../../app/models/song';
  3.  
  4. moduleFor('service:player', 'Unit | Service | player', {
  5. needs: ['service:config','service:display']
  6. });
  7.  
  8. test('it plays a song', function(assert) {
  9. let service = this.subject();
  10. let song = new Song();
  11.  
  12. let result = service.play(song);
  13.  
  14. assert.ok(result);
  15. });
  16.  
  17. not ok 306 PhantomJS 2.1 - TestLoader Failures: hub-ui/tests/unit/services/player-test: could not be loaded
  18. ---
  19. actual: >
  20. null
  21. stack: >
  22. missingModule@http://localhost:7357/assets/vendor.js:252:91
  23. findModule@http://localhost:7357/assets/vendor.js:263:20
  24. findDeps@http://localhost:7357/assets/vendor.js:173:34
  25. findModule@http://localhost:7357/assets/vendor.js:267:19
  26. requireModule@http://localhost:7357/assets/vendor.js:29:25
  27. http://localhost:7357/assets/test-support.js:8125:18
  28. require@http://localhost:7357/assets/test-support.js:8115:32
  29. loadModules@http://localhost:7357/assets/test-support.js:8107:23
  30. load@http://localhost:7357/assets/test-support.js:8058:37
  31. http://localhost:7357/assets/test-support.js:7901:22
  32. message: >
  33. Died on test #1 moduleLoadFailure@http://localhost:7357/assets/test-support.js:7889:17
  34. http://localhost:7357/assets/test-support.js:8127:33
  35. require@http://localhost:7357/assets/test-support.js:8115:32
  36. loadModules@http://localhost:7357/assets/test-support.js:8107:23
  37. load@http://localhost:7357/assets/test-support.js:8058:37
  38. http://localhost:7357/assets/test-support.js:7901:22: Could not find module `hub-ui/app/models/song` imported from `hub-ui/tests/unit/services/player-test`
  39. Log: |
  40. ...
Add Comment
Please, Sign In to add comment