Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: removed spaces not allowed (jscs)
  • Loading branch information
odolha committed Mar 16, 2016
commit 59a39fb0a9b752d104981cc88a8ebcc23f179182
22 changes: 11 additions & 11 deletions test/ng/compileSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8844,9 +8844,9 @@ describe('$compile', function() {
});

describe('dynamic multi-slot transclude', function() {
it('should allow passing the transclude slots configuration - simple', function () {
module(function () {
directive('minionComponent', function () {
it('should allow passing the transclude slots configuration - simple', function() {
module(function() {
directive('minionComponent', function() {
return {
restrict: 'E',
transclude: 'dynamic',
Expand All @@ -8857,7 +8857,7 @@ describe('$compile', function() {
};
});
});
inject(function ($rootScope, $compile) {
inject(function($rootScope, $compile) {
element = $compile(
'<minion-component transclude-slots="{ bobSlot: \'bob\' }">' +
'<stuart><span>stuart</span></stuart>' +
Expand All @@ -8870,9 +8870,9 @@ describe('$compile', function() {
});
});

it('should allow passing the transclude slots configuration - complex usage', function () {
module(function () {
directive('minionComponent', function () {
it('should allow passing the transclude slots configuration - complex usage', function() {
module(function() {
directive('minionComponent', function() {
return {
restrict: 'E',
transclude: 'dynamic',
Expand All @@ -8883,7 +8883,7 @@ describe('$compile', function() {
};
});
});
inject(function ($rootScope, $compile) {
inject(function($rootScope, $compile) {
element = $compile(
'<minion-component transclude-slots="{ bobSlot: \'bob\', gruSlot: \'gru\', kevinSlot: \'kevin\', stuartSlot: \'stuart\' }">' +
'<stuart><span>stuart</span></stuart>' +
Expand All @@ -8897,8 +8897,8 @@ describe('$compile', function() {
});

it('should error if slot config is not provided when using the directive', function() {
module(function () {
directive('minionComponent', function () {
module(function() {
directive('minionComponent', function() {
return {
restrict: 'E',
transclude: 'dynamic',
Expand All @@ -8909,7 +8909,7 @@ describe('$compile', function() {
};
});
});
inject(function ($rootScope, $compile) {
inject(function($rootScope, $compile) {
expect(function() {
element = $compile(
'<minion-component>' +
Expand Down