diff --git a/tests/index.js b/tests/index.js
index <HASH>..<HASH> 100644
--- a/tests/index.js
+++ b/tests/index.js
@@ -274,7 +274,11 @@ describe( 'rollup-plugin-babel-minify', () => {
 				sourcemap: false
 			} ) );
 		} ).then( ( result ) => {
-			expect( result.map ).to.equal( null );
+			// It seems that Rollup tends to behave differently on different versions of
+			// Node.js, returning null on Node 8+ and undefined otherwise.
+			expect( result.map ).to.satisfy( ( value ) => {
+				return value === undefined || value === null;
+			} );
 		} );
 	} );
test(sourcemap): broaden conditional for not-generated sourcemap