mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 11:10:22 +08:00
12 lines
425 B
JavaScript
12 lines
425 B
JavaScript
import * as assert from 'assert';
|
|
import test, { describe } from 'node:test';
|
|
import validate from '../validate.js';
|
|
import { TESTS } from './test_constants.js';
|
|
describe('validate()', () => {
|
|
test('TESTS cases', () => {
|
|
for (const { value, expectedValidate } of TESTS) {
|
|
assert.strictEqual(validate(value), expectedValidate, `validate(${value}) should be ${expectedValidate}`);
|
|
}
|
|
});
|
|
});
|