import config from 'dummy/config/environment';
import test from 'ember-sinon-qunit/test-support/test';

const currentBootstrapVersion = parseInt(config.bootstrapVersion);

function testForBootstrap(bsVersion, name, fn) {
  if (bsVersion !== currentBootstrapVersion) {
    // Skip test for different Bootstrap version
    return;
  }
  return test(`${name} [BS${bsVersion}]`, fn);
}

export function testBS3() {
  return testForBootstrap(3, ...arguments);
}

export function testBS4() {
  return testForBootstrap(4, ...arguments);
}

export { test };
@@ -522,24 +522,409 @@
 uments);%0A%7D%0A%0A
+function versionDependent(v3, v4) %7B%0A  if (currentBootstrapVersion === 3) %7B%0A    return v3;%0A  %7D%0A%0A  return v4;%0A%7D%0A%0Aexport function visibilityClass() %7B%0A  return versionDependent('in', 'show');%0A%7D%0A%0Aexport function openClass() %7B%0A  return versionDependent('open', 'show');%0A%7D%0A%0Aexport function placementClassFor(type, placement) %7B%0A  return versionDependent(placement, %60$%7Btype%7D-$%7Bplacement%7D%60);%0A%7D%0A%0A
 export %7B tes
@@ -927,8 +927,9 @@
  test %7D;
+%0A

Add test helpers for dominant scenarios.