Skip to content

Commit

Permalink
assertName-test: test new instead of deprecated function (#3423)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Goncharov <ivan.goncharov.ua@gmail.com>
  • Loading branch information
Cito and IvanGoncharov committed Dec 17, 2021
1 parent 7795192 commit f17351c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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
6 changes: 2 additions & 4 deletions src/type/__tests__/assertName-test.ts
Expand Up @@ -2,10 +2,8 @@ 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', () => {
it('passthrough valid name', () => {
expect(assertName('_ValidName123')).to.equal('_ValidName123');
});
Expand Down Expand Up @@ -34,7 +32,7 @@ describe('assertValidName()', () => {
});
});

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

0 comments on commit f17351c

Please sign in to comment.