source:
trip-planner-front/node_modules/karma/lib/init/log-queue.js@
eed0bf8
Last change on this file since eed0bf8 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 211 bytes |
Line | |
---|---|
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.