From 161d71711253f132139650e3d24aab31a7474c1f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 20 May 2015 18:44:13 -0400 Subject: [PATCH] support test skipping --- test/samples/export-from-no-local-binding/_config.js | 6 ++++-- test/test.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/test/samples/export-from-no-local-binding/_config.js b/test/samples/export-from-no-local-binding/_config.js index 92c242a..855d4c2 100644 --- a/test/samples/export-from-no-local-binding/_config.js +++ b/test/samples/export-from-no-local-binding/_config.js @@ -3,9 +3,11 @@ var assert = require( 'assert' ); module.exports = { description: 'export from does not create a local binding', - error: function () { + error: function ( err ) { assert.ok( false, 'TODO: assertion is skipped because it is not used... we need to implement something like /*rollup: include */') - } + }, + + skip: true }; // test copied from https://github.com/esnext/es6-module-transpiler/tree/master/test/examples/export-from diff --git a/test/test.js b/test/test.js index 3231396..4888ae5 100644 --- a/test/test.js +++ b/test/test.js @@ -39,7 +39,7 @@ describe( 'rollup', function () { config = { description: dir }; } - ( config.solo ? it.only : it )( dir, function () { + ( config.skip ? it.skip : config.solo ? it.only : it )( dir, function () { return rollup.rollup( SAMPLES + '/' + dir + '/main.js', extend( {}, config.options ) ) .then( function ( bundle ) { var unintendedError;