Skip to content

Instantly share code, notes, and snippets.

View dualcyclone's full-sized avatar

Luke Dyson dualcyclone

View GitHub Profile
@dualcyclone
dualcyclone / test-using-sinon-useFakeTimers.js
Last active January 16, 2023 07:19 — forked from wrumsby/test-simple.js
Example of how to use Sinon's useFakeTimers.
/*global define, describe, it, before, after */
define(['chai', 'sinon', 'boilerplate/simple'], function (chai, sinon, simple) {
'use strict';
var assert = chai.assert;
describe('simple', function () {
describe('stamp', function () {
var clock;
var mockDate;