build(platform-browser): exclude node incompatible tests from :test target. (#21053)

PR Close #21053
This commit is contained in:
Misko Hevery
2017-12-17 22:18:50 -08:00
committed by Igor Minar
parent 6b81d1c9b9
commit 533a010b28
10 changed files with 15 additions and 5 deletions

View File

@ -96,7 +96,8 @@ export class SwTestHarness implements ServiceWorkerGlobalScope, Adapter, Context
} as any;
static envIsSupported(): boolean {
return (typeof URL === 'function') || (typeof require === 'function' && typeof require('url')['parse'] === 'function');
return (typeof URL === 'function') ||
(typeof require === 'function' && typeof require('url')['parse'] === 'function');
}
time: number;