summaryrefslogtreecommitdiff
path: root/www/lib/angular-carousel/test/unit/angular-carousel.shifty.js
blob: 994169ced6d22106aeff2119204f37b00632761f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*global waits, runs, iit, browserTrigger, beforeEach, afterEach, describe, it, inject, expect, module, angular, $*/

describe('angular-carousel.shifty', function () {
  'use strict';

  describe("compatibility with requirejs", function(){
    var loadShifty = function() {
      module('angular-carousel.shifty');
    };
    it("should not throw an exception when load the shifty within requirejs environment", function(){
      expect(loadShifty).not.toThrow();
    });

    it("should not throw an exception when inject `Tweenable` within requirejs environment", function(){
      loadShifty();
      expect(function() {inject(function(Tweenable){});}).not.toThrow();
    });
  });

});