Browse Source

failing test for #813

semi-dynamic-namespace-imports
Bogdan Chadkin 9 years ago
parent
commit
b86be27b08
  1. 12
      test/function/cycles-pathological-3/_config.js
  2. 3
      test/function/cycles-pathological-3/a.js
  3. 3
      test/function/cycles-pathological-3/b.js
  4. 3
      test/function/cycles-pathological-3/c.js
  5. 1
      test/function/cycles-pathological-3/main.js
  6. 2
      test/function/cycles-pathological-3/x.a.js
  7. 2
      test/function/cycles-pathological-3/x.b.js
  8. 2
      test/function/cycles-pathological-3/x.c.js

12
test/function/cycles-pathological-3/_config.js

@ -0,0 +1,12 @@
var assert = require( 'assert' );
module.exports = {
solo: true,
description: 'resolves more pathological cyclical dependencies gracefully',
options: {
onwarn: function ( message ) {
console.log(message);
// assert.ok( /unable to evaluate without/.test( message ) );
}
}
};

3
test/function/cycles-pathological-3/a.js

@ -0,0 +1,3 @@
import * as x from "./x.a.js";
x.b();
x.c();

3
test/function/cycles-pathological-3/b.js

@ -0,0 +1,3 @@
import * as x from "./x.b.js";
export function b() {}

3
test/function/cycles-pathological-3/c.js

@ -0,0 +1,3 @@
import * as x from "./x.c.js";
export function c() {}

1
test/function/cycles-pathological-3/main.js

@ -0,0 +1 @@
import './a.js';

2
test/function/cycles-pathological-3/x.a.js

@ -0,0 +1,2 @@
export * from "./b.js";
export * from "./c.js";

2
test/function/cycles-pathological-3/x.b.js

@ -0,0 +1,2 @@
export * from "./a.js";
export * from "./c.js";

2
test/function/cycles-pathological-3/x.c.js

@ -0,0 +1,2 @@
export * from "./a.js";
export * from "./b.js";
Loading…
Cancel
Save