@@ -61,42 +61,42 @@ describe('svelte-version', () => {
61
61
expect ( atLeastSvelte ( VERSION ) ) . toBe ( true ) ;
62
62
} ) ;
63
63
64
- it ( 'should return true for patch bump ' , async ( ) => {
64
+ it ( 'should return false for higher patch ' , async ( ) => {
65
65
const patch = svelteVersion . concat ( ) ;
66
66
patch [ 2 ] += 1 ;
67
67
const patchBump = patch . join ( '.' ) ;
68
- expect ( atLeastSvelte ( patchBump ) ) . toBe ( true ) ;
68
+ expect ( atLeastSvelte ( patchBump ) ) . toBe ( false ) ;
69
69
} ) ;
70
- it ( 'should return true for minor bump ' , async ( ) => {
70
+ it ( 'should return false for higher minor ' , async ( ) => {
71
71
const minor = svelteVersion . concat ( ) ;
72
72
minor [ 1 ] += 1 ;
73
73
const minorBump = minor . join ( '.' ) ;
74
- expect ( atLeastSvelte ( minorBump ) ) . toBe ( true ) ;
74
+ expect ( atLeastSvelte ( minorBump ) ) . toBe ( false ) ;
75
75
} ) ;
76
- it ( 'should return true for major bump ' , async ( ) => {
76
+ it ( 'should return false for higher major ' , async ( ) => {
77
77
const major = svelteVersion . concat ( ) ;
78
78
major [ 0 ] += 1 ;
79
79
const majorBump = major . join ( '.' ) ;
80
- expect ( atLeastSvelte ( majorBump ) ) . toBe ( true ) ;
80
+ expect ( atLeastSvelte ( majorBump ) ) . toBe ( false ) ;
81
81
} ) ;
82
82
83
- it ( 'should return false for lower patch' , async ( ) => {
83
+ it ( 'should return true for lower patch' , async ( ) => {
84
84
const patch = svelteVersion . concat ( ) ;
85
85
patch [ 2 ] -= 1 ;
86
86
const lowerPatch = patch . join ( '.' ) ;
87
- expect ( atLeastSvelte ( lowerPatch ) ) . toBe ( false ) ;
87
+ expect ( atLeastSvelte ( lowerPatch ) ) . toBe ( true ) ;
88
88
} ) ;
89
- it ( 'should return false for lower minor' , async ( ) => {
89
+ it ( 'should return true for lower minor' , async ( ) => {
90
90
const minor = svelteVersion . concat ( ) ;
91
91
minor [ 1 ] -= 1 ;
92
92
const lowerMinor = minor . join ( '.' ) ;
93
- expect ( atLeastSvelte ( lowerMinor ) ) . toBe ( false ) ;
93
+ expect ( atLeastSvelte ( lowerMinor ) ) . toBe ( true ) ;
94
94
} ) ;
95
- it ( 'should return false for lower major' , async ( ) => {
95
+ it ( 'should return true for lower major' , async ( ) => {
96
96
const major = svelteVersion . concat ( ) ;
97
97
major [ 0 ] -= 1 ;
98
98
const lowerMajor = major . join ( '.' ) ;
99
- expect ( atLeastSvelte ( lowerMajor ) ) . toBe ( false ) ;
99
+ expect ( atLeastSvelte ( lowerMajor ) ) . toBe ( true ) ;
100
100
} ) ;
101
101
} ) ;
102
102
} ) ;
0 commit comments