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 e24f313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .c8rc.json
Expand Up @@ -7,6 +7,7 @@
"src/jsutils/Maybe.ts",
"src/jsutils/ObjMap.ts",
"src/jsutils/PromiseOrValue.ts",
"src/utilities/assertValidName.ts",
"src/utilities/typedQueryDocumentNode.ts"
],
"clean": true,
Expand Down
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 e24f313

Please sign in to comment.