Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> web >> node-lolex
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: node-lolex  ]

软件包: 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.

其他与 node-lolex 有关的软件包

  • 依赖
  • 推荐
  • 建议

下载 node-lolex

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 26.6 kB176 kB [文件列表]