baseHook.spec.ts 438 B

1234567891011121314
  1. import { QUERY_TYPE } from '~/types/enums'
  2. import BaseHook from '~/services/dataPersister/hook/baseHook'
  3. import { DataPersisterArgs } from '~/types/interfaces'
  4. class DummyHook extends BaseHook {}
  5. describe('support()', () => {
  6. it('should trow an error if support doesnt defined in DummyHook', () => {
  7. const args:DataPersisterArgs = {
  8. type: QUERY_TYPE.DEFAULT
  9. }
  10. expect(() => DummyHook.support(args)).toThrow()
  11. })
  12. })