Skip to content

'should.and' failing with '[email protected]' #1498

@AlexKVal

Description

@AlexKVal

This spec-code

var methodTest = sinon.stub();

methodTest('y');

methodTest.should.have.been.calledOnce
    .and.calledWith('y');

causes

✖ validates each validation
      Chrome 43.0.2357 (Mac OS X 10.9.5)
    TypeError: Cannot read property 'and' of undefined

with [email protected] version.

I've created simple project for bug repro:
https://github.com/AlexKVal/karma-test

master branch uses [email protected] and causes test fail
karma13 https://travis-ci.org/AlexKVal/karma-test/builds/71240835
screen shot 2015-07-16 at 3 12 23 pm

https://github.com/AlexKVal/karma-test/tree/karma12 branch uses [email protected] version and works fine
karma12 https://travis-ci.org/AlexKVal/karma-test/builds/71240954
screen shot 2015-07-16 at 3 05 59 pm

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions