Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('works', (done) => {
runTargetSpec(angularHost, webpackTargetSpec).pipe(
tap((buildEvent) => expect(buildEvent.success).toBe(true)),
tap(() => {
expect(angularHost.scopedSync().exists(join(outputPath, 'main.js'))).toBe(true);
expect(angularHost.scopedSync().exists(join(outputPath, 'polyfills.js'))).toBe(true);
}),
).toPromise().then(done, done.fail);
});
});
it('works', (done) => {
runTargetSpec(basicHost, webpackTargetSpec).pipe(
tap((buildEvent) => expect(buildEvent.success).toBe(true)),
tap(() => {
expect(basicHost.scopedSync().exists(join(outputPath, 'bundle.js'))).toBe(true);
}),
).toPromise().then(done, done.fail);
});
});