Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('creates ts.SourceFile give a file path', (done) => {
let sourceFile = path.join(rootPath, 'foo/foo.component.ts');
return dependentFilesUtils.createTsSourceFile(sourceFile)
.then((tsFile: ts.SourceFile) => {
let isTsSourceFile = (tsFile.kind === ts.SyntaxKind.SourceFile);
expect(isTsSourceFile).toBe(true);
})
.then(done, done.fail);
});
});
.then(() => dependentFilesUtils.createTsSourceFile(fooFile))
.then((tsFileFoo: ts.SourceFile) => {
.then(() => dependentFilesUtils.createTsSourceFile(fooBazFile))
.then((tsFile: ts.SourceFile) => {
.then(() => dependentFilesUtils.createTsSourceFile(fooBarFile))
.then((tsFileFooBar: ts.SourceFile) => {
.then(() => dependentFilesUtils.createTsSourceFile(bazFile))
.then((tsFile: ts.SourceFile) => {
.then(() => dependentFilesUtils.createTsSourceFile(barFile))
.then((tsFileBar: ts.SourceFile) => {
.then(() => dependentFilesUtils.createTsSourceFile(fooQuxFile))
.then((tsFileFooQux: ts.SourceFile) => {