Skip to content

Commit

Permalink
assertName-test: test new instead of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 11, 2021
1 parent c8bbb0a commit 426cb6d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/type/__tests__/assertName-test.ts
Expand Up @@ -2,10 +2,9 @@ import { expect } from 'chai';
import { describe, it } from 'mocha';

import { assertName, assertEnumValueName } from '../assertName';
import { assertValidName } from '../../utilities/assertValidName';

describe('assertValidName()', () => {
assertValidName('test');
describe('assertName()', () => {
assertName('test');
it('passthrough valid name', () => {
expect(assertName('_ValidName123')).to.equal('_ValidName123');
});
Expand Down

0 comments on commit 426cb6d

Please sign in to comment.