var expect = require("chai").expect;

module.exports = function(helpers) {
  var component = helpers.mount(require.resolve("./index.marko"), {
    name: "Frank",
    $global: {
      name: "Frank",
      serializedGlobals: { name: true }
    }
  });

  var onCreateArgs = component.onCreateArgs;
  var onCreateInput = onCreateArgs[0];
  var onCreateOut = onCreateArgs[1];

  expect(onCreateInput.name).to.equal("Frank");
  expect(onCreateOut.global.name).to.equal("Frank");
};
