Skip to content

Commit ce177be

Browse files
committed
test: fix assertVersion test
1 parent f6afdb1 commit ce177be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ test('api: assertVersion', () => {
174174
const plugin = {
175175
id: 'test-assertVersion',
176176
apply: api => {
177-
expect(() => api.assertVersion(3)).not.toThrow()
178-
expect(() => api.assertVersion('3')).not.toThrow()
179-
expect(() => api.assertVersion('>= 3')).not.toThrow()
177+
expect(() => api.assertVersion(4)).not.toThrow()
178+
expect(() => api.assertVersion('4')).not.toThrow()
179+
expect(() => api.assertVersion('>= 4')).not.toThrow()
180180

181-
expect(() => api.assertVersion(3.1)).toThrow('Expected string or integer value')
181+
expect(() => api.assertVersion(4.1)).toThrow('Expected string or integer value')
182182
expect(() => api.assertVersion('^100')).toThrow('Require @vue/cli-service "^100"')
183183
}
184184
}

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