use @actions/github
This commit is contained in:
parent
9da537eb33
commit
0086c2ecdb
199 changed files with 95598 additions and 6141 deletions
11
lib/testing-utils.js
generated
11
lib/testing-utils.js
generated
|
|
@ -1,5 +1,9 @@
|
|||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const sinon_1 = __importDefault(require("sinon"));
|
||||
function wrapOutput(context) {
|
||||
// Function signature taken from Socket.write.
|
||||
// Note there are two overloads:
|
||||
|
|
@ -25,7 +29,7 @@ function wrapOutput(context) {
|
|||
return true;
|
||||
};
|
||||
}
|
||||
function silenceDebugOutput(test) {
|
||||
function setupTests(test) {
|
||||
const typedTest = test;
|
||||
typedTest.beforeEach(t => {
|
||||
t.context.testOutput = "";
|
||||
|
|
@ -43,6 +47,9 @@ function silenceDebugOutput(test) {
|
|||
process.stdout.write(t.context.testOutput);
|
||||
}
|
||||
});
|
||||
typedTest.afterEach.always(() => {
|
||||
sinon_1.default.restore();
|
||||
});
|
||||
}
|
||||
exports.silenceDebugOutput = silenceDebugOutput;
|
||||
exports.setupTests = setupTests;
|
||||
//# sourceMappingURL=testing-utils.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue