Skip to content

Instantly share code, notes, and snippets.

View jishi's full-sized avatar

Jimmy Shimizu jishi

  • Stockholm, Sweden
View GitHub Profile
@jishi
jishi / discover.json
Created October 9, 2017 08:25
discover.json
{
"players": [
{
"roomName": "Bathroom",
"volume": 11
},
{
"roomName": "Kitchen",
"volume": 13
},
@jishi
jishi / test.js
Created August 30, 2019 08:39
Cool trick to test delayed execution
describe('when you send debug=timeout', () => {
let fakeTimer;
beforeEach(() => {
lambdaParameter.queryStringParameters.debug = 'timeout';
});
beforeEach(() => {
fakeTimer = sinon.useFakeTimers({
now: Date.now(),