test(animations): fix Node.js detection in animation tests (#24139)

PR Close #24139
This commit is contained in:
Vikram Subramanian
2018-05-25 13:52:58 -07:00
committed by Matias Niemelä
parent 1eafd04eb3
commit 3fd3c2ac4c
14 changed files with 14 additions and 18 deletions

View File

@ -117,7 +117,7 @@ import {el} from '../../testing/src/browser_util';
describe('flushing animations', () => {
// these tests are only mean't to be run within the DOM
if (typeof Element == 'undefined') return;
if (isNode) return;
it('should flush and fire callbacks when the zone becomes stable', (async) => {
@Component({