source:
trip-planner-front/node_modules/karma/lib/init/log-queue.js@
bdd6491
Last change on this file since bdd6491 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 211 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | 'use strict' |
2 | ||
3 | const logQueue = [] | |
4 | function printLogQueue () { | |
5 | logQueue.forEach((log) => log()) | |
6 | logQueue.length = 0 | |
7 | } | |
8 | ||
9 | function push (log) { | |
10 | logQueue.push(log) | |
11 | } | |
12 | ||
13 | module.exports = { | |
14 | printLogQueue, push | |
15 | } |
Note:
See TracBrowser
for help on using the repository browser.