This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implements fixer for
jasmine-no-lambda-expression-callbacks
and acc…
…ording tests
- Loading branch information
1 parent
f85f16f
commit 937625d
Showing
13 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...eNoLambdaExpressionCallbacks/default/jasmineNoLambdaExpressionCallbacksRuleDefault.ts.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
describe("this is ok", function() { | ||
it("this is ok", function() {}); | ||
it("this is ok", wrap(function() {})); | ||
|
||
describe("this is still ok", wrapAgain(function() {})); | ||
}); | ||
|
||
// still ok | ||
(() => {})(); | ||
|
||
// still ok | ||
someOtherCallWithLambda(() => {}) | ||
|
||
describe("this", function() { | ||
it("is an error", function() { | ||
}); | ||
}); | ||
|
||
fdescribe("this, too", function() { return doSomething(); }); | ||
fdescribe("this, too", function() { return doSomething(); }); | ||
fdescribe("this, too", function(){ return doSomething(); }); | ||
|
||
xdescribe("this, too", function() { | ||
}); | ||
|
||
describe("this, too", function() { | ||
it("is an error", function() { | ||
}); | ||
|
||
fit("is an error", function() { | ||
}); | ||
|
||
xit("is an error", function() { | ||
}); | ||
|
||
beforeEach(function() { | ||
}); | ||
|
||
beforeAll(function() { | ||
}); | ||
|
||
afterEach(function() { | ||
}); | ||
|
||
afterAll(function() { | ||
}); | ||
}); | ||
|
||
fdescribe("this, too", wrapCallback(function() { | ||
})); | ||
|
||
describe("this, too", wrapCallback(function() { | ||
it("hi", wrapAgain(function() { | ||
})); | ||
|
||
afterEach(yetAnotherWrap(function() { | ||
})); | ||
})); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...mbdaExpressionCallbacks/default/jasmineNoLambdaExpressionCallbacksRuleDefaultIIFE1.ts.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(function test() { | ||
describe('some test in an IIFE', function() {}); | ||
})(); | ||
|
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...mbdaExpressionCallbacks/default/jasmineNoLambdaExpressionCallbacksRuleDefaultIIFE2.ts.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(() => { | ||
describe('some test in an IIFE', function() {}); | ||
})(); | ||
|
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...mbdaExpressionCallbacks/default/jasmineNoLambdaExpressionCallbacksRuleDefaultIIFE3.ts.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(function test() { | ||
describe('some test in an other IIFE', function() {}); | ||
}()); | ||
|
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...daExpressionCallbacks/default/jasmineNoLambdaExpressionCallbacksRuleDefaultWrapped.ts.fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export function test() { | ||
describe('some test in a callback', function() {}); | ||
} | ||
|
File renamed without changes.
File renamed without changes.