Skip to content

Commit

Permalink
Documenting schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorris committed Sep 5, 2024
1 parent a12e6e3 commit 98892b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/schema.test.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import fs from 'node:fs';
import Schema from '../Schema.mjs';

import users from './users.json' with { type: 'json' };
import Tuple from '../Tuple.mjs';

const s = Schema;
Expand Down Expand Up @@ -132,6 +132,8 @@ test('s.or param test', t => {
});

test('usersSchema test', t => {
const users = JSON.parse(fs.readFileSync('test/users.json', {encoding: 'utf-8'}));

const usersSchema = s.nTuple(
(s.sRecord({
id: s.number({}),
Expand Down

0 comments on commit 98892b3

Please sign in to comment.