Skip to content

Commit 3bd9da6

Browse files
committed
Skip
1 parent 912fbe1 commit 3bd9da6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/unit/specs/mount/options/slots.spec.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ describe('mount.slots', () => {
1111
})
1212

1313
afterEach(() => {
14-
/* eslint-disable */
15-
window = _window
16-
/* eslint-enable */
14+
if (!window.navigator.userAgent.match(/Chrome/i)) {
15+
/* eslint-disable */
16+
window = _window
17+
/* eslint-enable */
18+
}
1719
})
1820

1921
it('mounts component with default slot if passed component in slot object', () => {
@@ -38,6 +40,9 @@ describe('mount.slots', () => {
3840
})
3941

4042
it('throws error if the UserAgent is PhantomJS when passed string is in slot object', () => {
43+
if (window.navigator.userAgent.match(/Chrome/i)) {
44+
return
45+
}
4146
/* eslint-disable */
4247
window = { navigator: { userAgent:'PhantomJS' } }
4348
/* eslint-enable */

0 commit comments

Comments
 (0)