mirror of
https://github.com/github/codeql-action.git
synced 2025-12-22 07:10:23 +08:00
25 lines
1.1 KiB
JavaScript
Generated
25 lines
1.1 KiB
JavaScript
Generated
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
result["default"] = mod;
|
|
return result;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const ava_1 = __importDefault(require("ava"));
|
|
const uploadLib = __importStar(require("./upload-lib"));
|
|
ava_1.default('validateSarifFileSchema - valid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/valid-sarif.sarif';
|
|
const errors = uploadLib.validateSarifFileSchema(inputFile);
|
|
t.deepEqual(errors, []);
|
|
});
|
|
ava_1.default('validateSarifFileSchema - invalid', t => {
|
|
const inputFile = __dirname + '/../src/testdata/invalid-sarif.sarif';
|
|
const errors = uploadLib.validateSarifFileSchema(inputFile);
|
|
t.notDeepEqual(errors, []);
|
|
});
|
|
//# sourceMappingURL=upload-lib.test.js.map
|