Skip to content

Commit 6f5ca30

Browse files
committed
test: fix assertVersion test for prereleases
1 parent 60ca68f commit 6f5ca30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-service/__tests__/Service.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ test('api: assertVersion', () => {
175175
id: 'test-assertVersion',
176176
apply: api => {
177177
expect(() => api.assertVersion(4)).not.toThrow()
178-
expect(() => api.assertVersion('4')).not.toThrow()
178+
expect(() => api.assertVersion('^4.0.0-0')).not.toThrow()
179179
expect(() => api.assertVersion('>= 4')).not.toThrow()
180180

181181
expect(() => api.assertVersion(4.1)).toThrow('Expected string or integer value')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy