-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0347b72
commit 572c8bb
Showing
10 changed files
with
304 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import test from 'ava'; | ||
|
||
import * as analysisPaths from './analysis-paths'; | ||
import * as configUtils from './config-utils'; | ||
|
||
test("emptyPaths", async () => { | ||
test("emptyPaths", async t => { | ||
let config = new configUtils.Config(); | ||
analysisPaths.includeAndExcludeAnalysisPaths(config, []); | ||
expect(process.env['LGTM_INDEX_INCLUDE']).toBeUndefined(); | ||
expect(process.env['LGTM_INDEX_EXCLUDE']).toBeUndefined(); | ||
t.is(process.env['LGTM_INDEX_INCLUDE'], undefined); | ||
t.is(process.env['LGTM_INDEX_EXCLUDE'], undefined); | ||
}); | ||
|
||
test("nonEmptyPaths", async () => { | ||
test("nonEmptyPaths", async t => { | ||
let config = new configUtils.Config(); | ||
config.paths.push('path1', 'path2'); | ||
config.pathsIgnore.push('path3', 'path4'); | ||
analysisPaths.includeAndExcludeAnalysisPaths(config, []); | ||
expect(process.env['LGTM_INDEX_INCLUDE']).toEqual('path1\npath2'); | ||
expect(process.env['LGTM_INDEX_EXCLUDE']).toEqual('path3\npath4'); | ||
}); | ||
t.is(process.env['LGTM_INDEX_INCLUDE'], 'path1\npath2'); | ||
t.is(process.env['LGTM_INDEX_EXCLUDE'], 'path3\npath4'); | ||
}); |
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
Oops, something went wrong.