message: tests/Interaction: reduce test nesting
diff: @@ -2,13 +2,9 @@ const test = require('./test');
  const pointerUtils = require('../src/utils/pointerUtils');
  const helpers = require('./helpers');
  -test('Interaction', t => {
  +test('Interaction constructor', t => {
  const scope = require('../src/scope');
  const Interaction = require('../src/Interaction');
  -
  - const test = t.test;
  -
  - test('Interaction constructor', t => {
  const interaction = new Interaction();
  const zeroCoords = {
  page : { x: 0, y: 0 },
  @@ -57,6 +53,7 @@ test('Interaction', t => {
  });
  test('Interaction.getPointerIndex', t => {
  + const Interaction = require('../src/Interaction');
  const interaction = new Interaction();
  interaction.pointerIds = [2, 4, 5, 0, -1];
  @@ -69,6 +66,7 @@ test('Interaction', t => {
  });
  test('Interaction.updatePointer', t => {
  + const Interaction = require('../src/Interaction');
  t.test('no existing pointers', st => {
  const interaction = new Interaction();
  @@ -130,6 +128,7 @@ test('Interaction', t => {
  });
  test('Interaction.removePointer', t => {
  + const Interaction = require('../src/Interaction');
  const interaction = new Interaction();
  const pointerIdArrays = 'pointerIds downTargets downTimes'.split(' ');
  const pointerIds = [0, 1, 2, 3];
  @@ -164,6 +163,7 @@ test('Interaction', t => {
  });
  test('Interaction.pointerDown', t => {
  + const Interaction = require('../src/Interaction');
  const interaction = new Interaction();
  const coords = helpers.newCoordsSet();
  const eventTarget = {};
  @@ -245,6 +245,8 @@ test('Interaction', t => {
  });
  test('Interaction.start', t => {
  + const scope = require('../src/scope');
  + const Interaction = require('../src/Interaction');
  const interaction = new Interaction();
  const action = { name: 'TEST' };
  const target = {};
  @@ -294,4 +296,3 @@ test('Interaction', t => {
  t.end();
  });
  -});
  