Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Commit

Permalink
you are drunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Nov 7, 2017
1 parent 1393c23 commit 1ddcfae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ describe('DeclarationIndexHelpers', () => {
it('should find all relevant file in the workspace (*.ts)', async () => {
config.resolver.resolverModeFileGlobs = config.resolver.resolverModeFileGlobs.filter(o => o.indexOf('ts') >= 0);
const result = await findFiles(config, workfolder);
console.log(result);
result.length.should.equal(50);
(result.every(file => file.endsWith('.ts') || file.endsWith('.tsx'))).should.be.true;
result.should.contain(join(rootPath, 'typings/globals/body-parser/index.d.ts'));
Expand All @@ -216,6 +217,7 @@ describe('DeclarationIndexHelpers', () => {
it('should find all relevant file in the workspace (*.js)', async () => {
config.resolver.resolverModeFileGlobs = config.resolver.resolverModeFileGlobs.filter(o => o.indexOf('js') >= 0);
const result = await findFiles(config, workfolder);
console.log(result);
result.length.should.equal(9);
result.should.contain(join(rootPath, 'extension/extensions/importResolveExtension/addImportToDocument.js'));
result.should.contain(join(rootPath, 'extension/extensions/importResolveExtension/jsfile.js'));
Expand All @@ -229,6 +231,7 @@ describe('DeclarationIndexHelpers', () => {

it('should find all relevant file in the workspace (*.ts & *.js)', async () => {
const result = await findFiles(config, workfolder);
console.log(result);
result.length.should.equal(53);
result.should.contain(join(rootPath, 'extension/extensions/importResolveExtension/addImportToDocument.js'));
result.should.contain(join(rootPath, 'extension/extensions/importResolveExtension/jsfile.js'));
Expand All @@ -253,6 +256,7 @@ describe('DeclarationIndexHelpers', () => {
it('should contain build files when configured otherwise', async () => {
config.resolver.ignorePatterns = [];
const result = await findFiles(config, workfolder);
console.log(result);
result.should.contain(join(rootPath, 'build/app.js'));
result.should.contain(join(rootPath, 'build/app.d.ts'));
result.should.contain(join(rootPath, 'out/out.js'));
Expand Down

0 comments on commit 1ddcfae

Please sign in to comment.