Browse Source

Add a failing test that illustrates a problem with RSVP.

contingency-plan
Brian Donovan 10 years ago
parent
commit
d4eeb54dae
  1. 3
      test/function/top-level-side-effects-are-preserved/_config.js
  2. 1
      test/function/top-level-side-effects-are-preserved/asap.js
  3. 1
      test/function/top-level-side-effects-are-preserved/config.js
  4. 5
      test/function/top-level-side-effects-are-preserved/defer.js
  5. 3
      test/function/top-level-side-effects-are-preserved/main.js
  6. 7
      test/function/top-level-side-effects-are-preserved/rsvp.js

3
test/function/top-level-side-effects-are-preserved/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'top level side effects are preserved'
};

1
test/function/top-level-side-effects-are-preserved/asap.js

@ -0,0 +1 @@
export default function asap() {}

1
test/function/top-level-side-effects-are-preserved/config.js

@ -0,0 +1 @@
export const config = {};

5
test/function/top-level-side-effects-are-preserved/defer.js

@ -0,0 +1,5 @@
import { config } from './config';
export default function defer() {
config.async();
}

3
test/function/top-level-side-effects-are-preserved/main.js

@ -0,0 +1,3 @@
import { defer } from './rsvp';
defer();

7
test/function/top-level-side-effects-are-preserved/rsvp.js

@ -0,0 +1,7 @@
import { config } from './config';
import asap from './asap';
import defer from './defer';
config.async = asap;
export { defer };
Loading…
Cancel
Save