Coder Social home page Coder Social logo

chai-undefined's Introduction

chai-undefined (master) $ npm test

> [email protected] test /Users/david.beaumont/scratch/chai-undefined
> mocha -r mocha_setup.js test.js



  undefined test
    when using dirty chai
      1) should fail an undefined expect
    when using normal chai
      โœ“ should fail an undefined expect 


  1 passing (7ms)
  1 failing

  1) undefined test when using dirty chai should fail an undefined expect:
     TypeError: undefined is not a spy or a call to a spy!
      at assertCanWorkWith (/Users/david.beaumont/scratch/chai-undefined/node_modules/sinon-chai/lib/sinon-chai.js:43:19)
      at Assertion.<anonymous> (/Users/david.beaumont/scratch/chai-undefined/node_modules/sinon-chai/lib/sinon-chai.js:70:13)
      at execDeferred (/Users/david.beaumont/scratch/chai-undefined/node_modules/dirty-chai/lib/dirty-chai.js:43:29)
      at Assertion.newMethod (/Users/david.beaumont/scratch/chai-undefined/node_modules/dirty-chai/lib/dirty-chai.js:68:18)
      at Assertion.assert (/Users/david.beaumont/scratch/chai-undefined/node_modules/chai/lib/chai/utils/addChainableMethod.js:83:49)
      at Context.<anonymous> (/Users/david.beaumont/scratch/chai-undefined/test.js:7:38)
      at callFn (/Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runnable.js:250:21)
      at Test.Runnable.run (/Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runnable.js:243:7)
      at Runner.runTest (/Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runner.js:373:10)
      at /Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runner.js:451:12
      at next (/Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runner.js:298:14)
      at /Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runner.js:308:7
      at next (/Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runner.js:246:23)
      at Object._onImmediate (/Users/david.beaumont/scratch/chai-undefined/node_modules/mocha/lib/runner.js:275:5)
      at processImmediate [as _immediateCallback] (timers.js:336:15)

chai-undefined's People

Watchers

James Cloos avatar David Beaumont avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.