Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> web >> node-lolex
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: node-lolex  ]

套件: node-lolex (2.2.0-1)

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 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: nodejs
    evented I/O for V8 javascript

下載 node-lolex

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 12.9 kB69 kB [文件列表]