init.js 482 B

1234567891011121314151617
  1. // Wait for main application to be fully loaded
  2. beforeAll((done) => setTimeout(done, 1000));
  3. // Inject common constants
  4. beforeEach(function() {
  5. module(($provide) => {
  6. // Provide configuration
  7. $provide.constant('CONFIG', window.config);
  8. // Mock versions
  9. $provide.constant('PROTOCOL_VERSION', 1337);
  10. $provide.constant('VERSION', 42);
  11. });
  12. });
  13. // Uninstall the mock clock after every test
  14. afterEach(() => jasmine.clock().uninstall());