Skip to content

Commit ffb6f94

Browse files
committed
test: check type name
related #32
1 parent 47aa7a1 commit ffb6f94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/__tests__/github_issues/32-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ describe('github issue #72 - hits returns me the found id, score, type...', () =
7070
]);
7171

7272
const SourceTC = HitsTC.getFieldTC('_source');
73+
expect(SourceTC.getTypeName()).toBe('SearchActivitiesSearchActivities');
7374
expect(SourceTC).toBeInstanceOf(TypeComposer);
7475
expect(SourceTC.getFieldNames()).toEqual(['id', 'title', 'description']);
7576
});
@@ -115,6 +116,7 @@ describe('github issue #72 - hits returns me the found id, score, type...', () =
115116
]);
116117

117118
const SourceTC = HitsTC.getFieldTC('_source');
119+
expect(SourceTC.getTypeName()).toBe('SearchActivitiesSearchActivities');
118120
expect(SourceTC).toBeInstanceOf(TypeComposer);
119121
expect(SourceTC.getFieldNames()).toEqual(['id', 'title', 'description']);
120122
});

0 commit comments

Comments
 (0)