GithubHelp home page GithubHelp logo

nodejs-doubles's People

Contributors

dependabot[bot] avatar siakro avatar

Stargazers

 avatar

nodejs-doubles's Issues

[feature] add firstCall and secondCall to monitor log

Package name

No response

Please, describe the feature.

Right now, for getting the first call and second calls of a monitor log, we need to use getCall(0) and getCall(1), respectively.
It seems better to use firstCall and secondCall properties, similarly to the expected package.

Please, describe what problem solving.

Consistence with the expected package.

monitor: target.apply is not a function

The following error is raised when a simulator with a simulated method is used:

 TypeError: target.apply is not a function
      at Object.apply (node_modules/@akromio/doubles/dist/cjs/monitor/index.js:72:28)
      at CatalogInstaller.installCatalog (dist/cjs/CatalogInstaller.js:74:44)
      at Context.<anonymous> (__tests__/unit/CatalogInstaller.js:76:45)
      at processImmediate (node:internal/timers:466:21)

[bug] monitor failing due to Monitor.hasToBeMonitorized()

Package name and version

@akromio/doubles 0.5.1

Environment

$ gattuso s
OS: linux (5.15.0-56-generic) #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022
Arch: x64
Node.js: v18.9.0

Describe the bug

The method Monitor.hasToBeMonitorized() is failing when a Symbol is received as name. This parameter can be text and Symbol.

Expected behavior

The method must not fail if a symbol is received.

Actual behavior

The method is failing and the test is failing due to this issue.

Backtrace

No response

Reproduction Steps

No response

Additional information

No response

[feature] add method.sleep()

Package name

@akromio/doubles

Please, describe the feature.

We should add method.sleep() for resolving a value after a delay:

method.sleep("100ms", "the-value")

Please, describe what problem solving.

Do resolve several issues needed of a delay.

[feature] simulator for readable streams

Package name

No response

Please, describe the feature.

We must support the readable streams.

Please, describe what problem solving.

Needed due to readable streams are very used.

[feature] support writable streams

Package name

No response

Please, describe the feature.

We need to support writable streams.

Please, describe what problem solving.

Writable streams are very used.

[feature] add thirdCall to monitor log

Package name

@akromio/doubles

Please, describe the feature.

It's common to do log.getCall(2), for this reason, we need to define thirdCall.

Please, describe what problem solving.

Improve ease of use.

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.