main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
425 bytes
|
Line | |
---|
1 | import * as assert from 'assert';
|
---|
2 | import test, { describe } from 'node:test';
|
---|
3 | import validate from '../validate.js';
|
---|
4 | import { TESTS } from './test_constants.js';
|
---|
5 | describe('validate()', () => {
|
---|
6 | test('TESTS cases', () => {
|
---|
7 | for (const { value, expectedValidate } of TESTS) {
|
---|
8 | assert.strictEqual(validate(value), expectedValidate, `validate(${value}) should be ${expectedValidate}`);
|
---|
9 | }
|
---|
10 | });
|
---|
11 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.