Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

angular-mocks: $timeout.flushNext() does not work #4885

Closed
@wajda

Description

@wajda

$timeout.flushNext(123) stops working since 1.2.0-rc.3. (In 1.2.0.-rc2 it works fine).
It fails with different exceptions in 1.2.0-rc.3 and 1.2.0 (release) versions:

In "1.2.0-rc.3":

'undefined' is not a function (evaluating '$browser.defer.flushNext(expectedDelay)')
    at angular-mocks-1.2.0-rc.3.js:1646

In "1.2.0":

TypeError: Attempted to assign to readonly property.
    at workFn (angular-mocks-1.2.0.js:2122)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions