This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// setIntervalTimeout sits somewhere between setTimeout and setInterval, | |
// allowing a finite or infinite number of fixed or variadic intervals. | |
// Returns a cleanup function to clear the current timeout. | |
// Note: IE does not support generators. | |
function setIntervalTimeout(callback, iterable, ...args){ | |
if (!(Symbol.iterator in iterable)){ | |
throw new Error(`Expected valid iterable. Received: ${iterable}.`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cost-insights: | |
backendUrl: http://some-url.com | |
metrics: | |
mmau: | |
name: Cost per Million MAU | |
description: > | |
This description appears in the subheader | |
legend: | |
title: Spotify MAU | |
description: > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summary of all failing tests | |
FAIL [2msrc/plugins/lineage/DagreGrNode.test.js | |
● <Node /> › renders the supplied element | |
TypeError: Cannot assign to read only property 'getBBox' of object '[object HTMLUnknownElement]' | |
[2m[22m | |
[2m 10 | describe('<Node />', () => {[22m | |
[2m 11 | beforeEach(() => {[22m | |
[2m> 12 | window.HTMLUnknownElement.prototype.getBBox = function() {[22m | |
[2m | ^[22m | |
[2m 13 | return { width: 100, height: 100 };[22m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TaskQueue { | |
constructor(config = {}){ | |
this.config = Object.assign({ | |
concurrency: 1, | |
rejectOnError: true, | |
timeout: 0 | |
}, config); | |
this.remaining = 0; | |
this.running = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Hello World!'); |