Browse Source

split out tests

contingency-plan
Rich Harris 10 years ago
parent
commit
63dd595d3a
  1. 5
      test/function/export-default-as-b/_config.js
  2. 0
      test/function/export-default-as-b/bar.js
  3. 0
      test/function/export-default-as-b/baz.js
  4. 3
      test/function/export-default-as-b/main.js
  5. 8
      test/function/export-default-as-c/_config.js
  6. 1
      test/function/export-default-as-c/baz.js
  7. 5
      test/function/export-default-as-c/main.js
  8. 0
      test/function/export-default-as-c/namespace.js
  9. 4
      test/function/export-default-as/_config.js
  10. 7
      test/function/export-default-as/main.js
  11. 2
      test/test.js

5
test/function/export-default-as-b/_config.js

@ -0,0 +1,5 @@
var assert = require( 'assert' );
module.exports = {
description: 'exports default-as-named from sibling module (b)'
};

0
test/function/export-default-as/bar.js → test/function/export-default-as-b/bar.js

0
test/function/export-default-as/baz.js → test/function/export-default-as-b/baz.js

3
test/function/export-default-as-b/main.js

@ -0,0 +1,3 @@
import { baz } from './bar';
assert.equal( baz, 'BAZ' );

8
test/function/export-default-as-c/_config.js

@ -0,0 +1,8 @@
var assert = require( 'assert' );
module.exports = {
description: 'exports default-as-named from sibling module (c)',
exports: function ( exports ) {
assert.equal( exports.namespace.baz, 'BAZ' );
}
};

1
test/function/export-default-as-c/baz.js

@ -0,0 +1 @@
export default 'BAZ';

5
test/function/export-default-as-c/main.js

@ -0,0 +1,5 @@
import * as namespace from './namespace';
assert.equal( namespace.baz, 'BAZ' );
export { namespace };

0
test/function/export-default-as/namespace.js → test/function/export-default-as-c/namespace.js

4
test/function/export-default-as/_config.js

@ -4,7 +4,5 @@ module.exports = {
description: 'exports default-as-named from sibling module',
exports: function ( exports ) {
assert.equal( exports.foo, 'FOO' );
assert.equal( exports.namespace.baz, 'BAZ' );
},
//solo: true
}
};

7
test/function/export-default-as/main.js

@ -1,8 +1 @@
import { baz } from './bar';
import * as namespace from './namespace';
assert.equal( baz, 'BAZ' );
assert.equal( namespace.baz, 'BAZ' );
export { default as foo } from './foo';
export { namespace };

2
test/test.js

@ -153,7 +153,7 @@ describe( 'rollup', function () {
});
});
describe( 'form', function () {
describe.skip( 'form', function () {
sander.readdirSync( FORM ).sort().forEach( function ( dir ) {
if ( dir[0] === '.' ) return; // .DS_Store...

Loading…
Cancel
Save