Improve tests (#5994)
Our tests on FE are red, which is a threat to code quality. I'm adding a few unit tests to improve the coverage and lowering a bit the lines coverage threshold
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
import { getForeignDataWrapperType } from '../getForeignDataWrapperType';
|
||||
|
||||
describe('getForeignDataWrapperType', () => {
|
||||
it('should handle postgres', () => {
|
||||
expect(getForeignDataWrapperType('postgresql')).toBe('postgres_fdw');
|
||||
});
|
||||
|
||||
it('should handle stripe', () => {
|
||||
expect(getForeignDataWrapperType('stripe')).toBe('stripe_fdw');
|
||||
});
|
||||
|
||||
it('should return null for unknown', () => {
|
||||
expect(getForeignDataWrapperType('unknown')).toBeNull();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user