import { testing } from "ember";

export default function() {
  let duration = 200;
  if (testing) {
    this.setDefault({duration: 10});
  }

  this.transition(
    this.hasClass("to-left-reverse-to-right"),
    this.toValue(true),
    this.use('toLeft', {duration: duration}),
    this.reverse('toRight', {duration: duration})
  );
}
