Skip to content
Sections
>> Trisquel >> Paket >> aramo >> web >> node-lolex
etiona  ] [  nabia  ] [  aramo  ]
[ Källkod: node-lolex  ]

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

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.

Andra paket besläktade med node-lolex

  • beror
  • rekommenderar
  • föreslår

Hämta node-lolex

Hämtningar för alla tillgängliga arkitekturer
Arkitektur Paketstorlek Installerad storlek Filer
all 26,6 kbyte176 kbyte [filförteckning]