Skip to content

Commit a45df6f

Browse files
Brandon DailBrandon Dail
authored andcommitted
Init for typeMapper.test.js
Fixed linting errors
1 parent 4556d77 commit a45df6f

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

src/typeMapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export function toGraphQL(sequelizeType, sequelizeTypes) {
3737
sequelizeType instanceof TEXT ||
3838
sequelizeType instanceof UUID ||
3939
sequelizeType instanceof DATE) {
40-
return GraphQLString
41-
}
40+
return GraphQLString;
41+
}
4242

4343
if (sequelizeType instanceof ARRAY) {
4444
let elementType = toGraphQL(sequelizeType.type, sequelizeTypes);

test/typeMapper.test.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { expect } from 'chai';
2+
import typeMapper from '../src/typeMapper';
3+
4+
import {
5+
BOOLEAN,
6+
ENUM,
7+
FLOAT,
8+
INTEGER,
9+
STRING
10+
} from 'sequelize';
11+
12+
import {
13+
GraphQLString,
14+
GraphQLInt,
15+
GraphQLBoolean,
16+
GraphQLFloat,
17+
GraphQLEnumType,
18+
GraphQLList
19+
} from 'graphql';
20+
21+
describe('typeMapper', () => {
22+
// TODO write tests for typeMapper
23+
})

0 commit comments

Comments
 (0)