compareResponseToFixture(fixturePath, fixtureId, compareTo) {
    const fixture = this.getFixture(fixturePath, fixtureId);
    compareTo = compareTo || this.response;

    should.exist(fixture);
    should.exist(compareTo);

    if (compareTo.id) {
      should(compareTo.id).eqls(fixtureId);
    } else if (compareTo._id) {
      should(compareTo._id).eqls(fixtureId);
    }

    if (compareTo.data) {
      should(compareTo.data).containEql(fixture);
    } else {
      should(compareTo.body).containEql(fixture);
    }
  }
/**
   * Compares this.response to a known fixture
   *
   * @param fixturePath
   * @param fixtureId
   * @param compareTo
   */
Compares this.response to a known fixture
@param fixturePath
@param fixtureId
@param compareTo
Compares this . response to a known fixture @param fixturePath @param fixtureId @param compareTo
compareResponseToFixture(fixturePath, fixtureId, compareTo) {
    const fixture = this.getFixture(fixturePath, fixtureId);
    compareTo = compareTo || this.response;
    should.exist(fixture);
    should.exist(compareTo);
    if (compareTo.id) {
      should(compareTo.id).eqls(fixtureId);
    } else if (compareTo._id) {
      should(compareTo._id).eqls(fixtureId);
    }
    if (compareTo.data) {
      should(compareTo.data).containEql(fixture);
    } else {
      should(compareTo.body).containEql(fixture);
    }
  }
compareResponseToFixture ( fixturePath , fixtureId , compareTo ) { const fixture = this . getFixture ( fixturePath , fixtureId ) ; compareTo = compareTo || this . response ; should . exist ( fixture ) ; should . exist ( compareTo ) ; if ( compareTo . id ) { should ( compareTo . id ) . eqls ( fixtureId ) ; } else if ( compareTo . _id ) { should ( compareTo . _id ) . eqls ( fixtureId ) ; } if ( compareTo . data ) { should ( compareTo . data ) . containEql ( fixture ) ; } else { should ( compareTo . body ) . containEql ( fixture ) ; } }
Compares this.response to a known fixture
 @param fixturePath
 @param fixtureId
 @param compareTo
Compares this . response to a known fixture @param fixturePath @param fixtureId @param compareTo