Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Can't get test to fail #12

Open
jessehattabaugh opened this issue Aug 1, 2017 · 4 comments
Open

Can't get test to fail #12

jessehattabaugh opened this issue Aug 1, 2017 · 4 comments

Comments

@jessehattabaugh
Copy link

I'm just getting started so I'm probably doing something wrong but this test passes. I'm comparing google.com and yahoo.com, so I'd expect it to fail.

const Niffy = require('niffy');

describe('testing niffy', function () {
  let niffer = null;
  
  before(function () {
    niffer = new Niffy(
      'https://www.google.com',
      'https://www.yahoo.com',
      { show: true }
    );
  });
  
  it('/', function* () {
    yield niffer.test('/');
  });
  
  after(function* () {
    yield niffer.end();
  });
});
@eainmonster
Copy link

I'm having this same issue. I've copied the code right here and it doesn't fail between google.com and google.co.jp, and I've spun up some test servers with different content and it doesn't fail there, either. Please help?

@coding-nemo
Copy link

I'm having this same issue

@mousemke
Copy link

what environment are you using? mine fail fine (macos, node 8.4.0, niffy 0.2.0)

screen shot 2017-09-14 at 17 27 12

@delavara
Copy link

delavara commented Sep 28, 2017

I also ran into this issue.

Tests were running and passing very fast using google.com and google.co.jp.

Turns out mocha wasn't finding the .opts file so co-mocha wasn't being required before execution.

Quick test is to see if adding --require co-mocha fixes things. You can also use mocha --opts /path/to/mocha.opts to point mocha directly to your mocha.opts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants