Skip to content
Sections
>> Trisquel >> Pakete >> nabia >> web >> node-lolex
etiona  ] [  nabia  ] [  aramo  ]
[ Quellcode: node-lolex  ]

Paket: node-lolex (5.1.2+ds-2)

Fake JavaScript timers

JavaScript implementation of the timer APIs; setTimeout, clearTimeout, setImmediate, clearImmediate, setInterval and clearInterval, along with a clock instance that controls the flow of time. Lolex also provides a Date implementation that gets its time from the clock.

Lolex can be used to simulate passing time in automated tests and other situations where you want the scheduling semantics, but don't want to actually wait. Lolex is extracted from Sinon.JS.

Andere Pakete mit Bezug zu node-lolex

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • dep: node-type-detect
    Improved typeof detection for node.js and the browser
  • dep: nodejs
    evented I/O for V8 javascript - runtime executable
    auch ein virtuelles Paket, bereitgestellt durch node-pegjs

node-lolex herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
all 25,2 kB175 kB [Liste der Dateien]