Skip to content

Commit

Permalink
add some test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Nov 9, 2024
1 parent df5e4f6 commit dc3e67c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/language/__tests__/kind-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
import { describe, it } from 'mocha';

import { Kind } from '../index.js';

describe('Kind', () => {
it('is a term level namespace with term level enum members', () => {
const a: Kind.NAME = Kind.NAME;
a;
const b: Kind = Kind.NAME;
b;
const c: Kind = Kind.ARGUMENT;
c;
});
it('is a type level namespace with type level enum members', () => {
// @ts-expect-error
const a: Kind.NAME = 'bad';
a;
const b: Kind.NAME = 'Name';
b;
// @ts-expect-error
const c: Kind = 'bad';
c;
const d: Kind = 'Name';
d;
const e: Kind = 'Argument';
e;
});
});

0 comments on commit dc3e67c

Please sign in to comment.