Tests work with webpack and a new favicon

This commit is contained in:
2016-02-28 18:34:11 +08:00
parent 844ef71cdb
commit 2a02b4e69f
95 changed files with 1429 additions and 1864 deletions
+4 -4
View File
@@ -33,17 +33,17 @@ describe('cardsForScience controllers', function () {
controller = $controller('CardController',{$scope:$scope});
});
it('should have elements', function () {
expect(controller.elements).toBeDefined();
it('should have cards', function () {
expect(controller.cards).toBeDefined();
});
it('should be visible', function () {
var item = controller.elements[0];
var item = controller.cards[0];
expect(controller.isVisible(item)).toBeDefined();
});
it('should be isAvailable', function () {
var item = controller.elements[0];
var item = controller.cards[0];
expect(controller.isAvailable(item)).toBeDefined();
});