Skip to content

Commit

Permalink
v1.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
LukaszWatroba committed Aug 27, 2015
1 parent 8c4004f commit ae18926
Showing 6 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/v-accordion.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* vAccordion - AngularJS multi-level accordion component
* @version v1.2.8
* @version v1.2.9
* @link http://lukaszwatroba.github.io/v-accordion
* @author Łukasz Wątroba <l@lukaszwatroba.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
2 changes: 1 addition & 1 deletion dist/v-accordion.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* vAccordion - AngularJS multi-level accordion component
* @version v1.2.8
* @version v1.2.9
* @link http://lukaszwatroba.github.io/v-accordion
* @author Łukasz Wątroba <l@lukaszwatroba.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
2 changes: 1 addition & 1 deletion dist/v-accordion.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/v-accordion.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "v-accordion",
"description": "vAccordion - AngularJS multi-level accordion component",
"version": "1.2.8",
"version": "1.2.9",
"author": "Łukasz Wątroba <l@lukaszwatroba.com>",
"license": "MIT",
"keywords": [
15 changes: 9 additions & 6 deletions test/unit/vAccordion/directives/v-pane.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
describe('v-pane directive', function () {

var $compile;
var $rootScope;
var accordionConfig;
@@ -100,7 +100,7 @@ describe('v-pane directive', function () {
});


it('should throw an error if multiple panes has `expanded` attribute, but the `allow-multiple` is not set', function () {
it('should throw an error if multiple panes has `expanded` attribute, but the `multiple` is not set', function () {
var template = '<v-accordion>\n' +
' <v-pane expanded>\n' +
' <v-pane-header></v-pane-header>\n' +
@@ -112,13 +112,16 @@ describe('v-pane directive', function () {
' </v-pane>\n' +
'</v-accordion>';

expect(function () { $compile(template)(scope); }).toThrow();
expect(function () {
$compile(template)(scope);
scope.$digest();
}).toThrow();
});


it('should works with `ng-repeat` directive', function () {
var length = 3;

var template = '<v-accordion>\n' +
' <v-pane ng-repeat="pane in panes">\n' +
' <v-pane-header>{{ pane.header }}</v-pane-header>\n' +
@@ -130,7 +133,7 @@ describe('v-pane directive', function () {

scope.panes = generatePanes(length);
scope.$digest();

expect(accordion.find('v-pane').length).toEqual(length);
});

@@ -160,4 +163,4 @@ describe('v-pane directive', function () {
expect(pane.hasClass('is-expanded')).toBe(true);
}));

});
});

0 comments on commit ae18926

Please sign in to comment.