@@ -55,7 +55,7 @@ describe("local", () => {
5555 // NOTE: eask loc is a long running command
5656 it ( "loc" , async ( ) => {
5757 // installs markdown mode -- depends on emacs 28.1
58- if ( ( await emacsVersion ( ) ) >= "28.1" ) {
58+ if ( cmp ( await emacsVersion ( ) , "28.1" ) == 1 ) {
5959 await ctx . runEask ( "loc" ) ;
6060 await ctx . runEask ( "loc Eask" ) ;
6161 }
@@ -237,11 +237,11 @@ describe("local", () => {
237237 it ( "lint elint" , async ( ) => {
238238 await ctx . runEask ( "lint elisp-lint" , { } ,
239239 // See https://github.com/emacs-eask/cli/issues/11.
240- cmp ( await emacsVersion ( ) , "28.1" ) == - 1 ) ;
240+ cmp ( await ( ) , "28.1" ) == - 1 ) ;
241241 } ) ;
242242
243243 it ( "lint regexps" , async ( ) => {
244- if ( ( await emacsVersion ( ) ) >= "27.1" ) {
244+ if ( cmp ( await ( ) , "27.1" ) == 1 ) {
245245 await ctx . runEask ( "lint regexps" ) ;
246246 }
247247 } ) ;
@@ -260,7 +260,7 @@ describe("local", () => {
260260 describe ( "Formatting" , ( ) => {
261261 // installs elisp-autofmt
262262 it ( "format elisp-autofmt" , async ( ) => {
263- if ( ( await emacsVersion ( ) ) >= "29.1" ) {
263+ if ( cmp ( await emacsVersion ( ) , "29.1" ) == 1 ) {
264264 await ctx . runEask ( "format elisp-autofmt" ) ;
265265 }
266266 } ) ;
0 commit comments