Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6e8c6ba

Browse files
Narretzmgol
authored andcommitted
WIP eslint scenario DescribeSpec
1 parent 55204c2 commit 6e8c6ba

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

test/ngScenario/DescribeSpec.js

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ describe('angular.scenario.Describe', function() {
2626
});
2727

2828
it('should handle basic nested case', function() {
29-
root.describe('A', function() {
29+
root.describe('A', /** @this **/ function() {
3030
this.beforeEach(log.fn('{'));
3131
this.afterEach(log.fn('}'));
3232
this.it('1', log.fn('1'));
33-
this.describe('B', function() {
33+
this.describe('B', /** @this **/ function() {
3434
this.beforeEach(log.fn('('));
3535
this.afterEach(log.fn(')'));
3636
this.it('2', log.fn('2'));
@@ -54,11 +54,11 @@ describe('angular.scenario.Describe', function() {
5454
});
5555

5656
it('should link nested describe blocks with parent and children', function() {
57-
root.describe('A', function() {
57+
root.describe('A', /** @this **/ function() {
5858
this.it('1', angular.noop);
59-
this.describe('B', function() {
59+
this.describe('B', /** @this **/ function() {
6060
this.it('2', angular.noop);
61-
this.describe('C', function() {
61+
this.describe('C', /** @this **/ function() {
6262
this.it('3', angular.noop);
6363
});
6464
});
@@ -69,11 +69,11 @@ describe('angular.scenario.Describe', function() {
6969
});
7070

7171
it('should not process xit and xdescribe', function() {
72-
root.describe('A', function() {
72+
root.describe('A', /** @this **/ function() {
7373
this.xit('1', angular.noop);
74-
this.xdescribe('B', function() {
74+
this.xdescribe('B', /** @this **/ function() {
7575
this.it('2', angular.noop);
76-
this.describe('C', function() {
76+
this.describe('C', /** @this **/ function() {
7777
this.it('3', angular.noop);
7878
});
7979
});
@@ -82,15 +82,16 @@ describe('angular.scenario.Describe', function() {
8282
expect(specs.length).toEqual(0);
8383
});
8484

85+
8586
it('should only return iit and ddescribe if present', function() {
86-
root.describe('A', function() {
87+
root.describe('A', /** @this **/ function() {
8788
this.it('1', angular.noop);
8889
this.iit('2', angular.noop);
89-
this.describe('B', function() {
90+
this.describe('B', /** @this **/ function() {
9091
this.it('3', angular.noop);
91-
this.ddescribe('C', function() {
92+
this.ddescribe('C', /** @this **/ function() {
9293
this.it('4', angular.noop);
93-
this.describe('D', function() {
94+
this.describe('D', /** @this **/ function() {
9495
this.it('5', angular.noop);
9596
});
9697
});

0 commit comments

Comments
 (0)